Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualgordon13

Posted 14 May 2013 - 07:49 PM

Hello I'm learning shader programming and have come across a problem when attempting to add a custom shader to the Torque game engine. I looked at existing shaders that work in torque and tried to make my shader have the same format but the shader doesnt seem to load. theres no error message or anything that might give a clue to what could be wrong.
 
I made this in FX composer and modified the format to match existing torque shaders as best I can. 
It works in fx composer but not in torque. I'm thinking its something to do with the link between the engine and the shader. the shader isnt getting the data it needs and the engine isn't getting the shader stuff it needs  but cant seem to find any useful information or anything I can understand(at least up till now).
 
Could someone have a look at my files and shed some light? Id really appreciate it, thanks.
 
material.cs
 
shader.cs
 
heroV.hlsl
 
heroP.hlsl

#1gordon13

Posted 14 May 2013 - 07:48 PM

Hello I'm learning shader programming and have come across a problem when attempting to add a custom shader to the Torque game engine. I looked at existing shaders that work in torque and tried to make my shader have the same format but the shader doesnt seem to load. theres no error message or anything that might give a clue to what could be wrong.
 
I made this in FX composer and modified the format to match existing torque shaders as best I can. 
It works in fx composer but not in torque. I'm thinking its something to do with the link between the engine and the shader. the shader isnt getting the data it needs and the engine isn't getting the shader stuff it needs  but cant seem to find any useful information or anything I can understand(at least up till now).
 
Could someone have a look at my files and shed some light? Id really appreciate it, thanks.
 
material.cs
 
shader.cs
 
heroV.hlsl
 
heroP.hlsl

PARTNERS