As I cannot use volume textures (or at least I don´t know how) I'm
using a animated texture to simulate noise effect in a shader. I pass
a random number to select the frame (generated with random->RandomInt(
0, 30 ) ) to the shader dll this way:
IMaterialVar* pVar = pMaterial->FindVar("$rand",&foundVar);
if (foundVar)
pVar->SetIntValue(rand);
but whenever the number is 19 or bigger, something crashes. It doesn´t
matter how many frames I created the texture with, It always crashes
if the number is 19 or bigger.
Is this a known issue?
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders