Game Development Community

Where are the procedural shader files?

by Manoel Neto · in Torque 3D Professional · 08/04/2009 (8:25 am) · 1 replies

I'm doing some debugging with NVPerfHud and there's a problem: I cannot check the procedural HLSL shaders, because their files aren't written to anywhere. I have this in my prefs:
$pref::video::shaderGenPath = "shaders/procedural";
But no file is ever saved into that folder, so I assume the shaders are being generated in memory. How do I get them to be written to disk?

#1
08/04/2009 (8:46 am)
Okay, the prefs.cs file was executed after the shaderGen initialized, moving the $pref::video::shaderGenPath declaration into the root main.cs solved the problem.

Now another problem arises. I remember in TGEA PerfHud would display the high level HLSL files (it was very nice to know which one was actually being used), but I can't get it to work with T3D. Only the assembler version is shown, and I don't even know which .hlsl file was used to generate it.