Skip to main content
GameDev.net gamedev.net
🔒 Locked

torque custom shader

Started by gordon13 May 15, 2013 at 1:48 AM 0 replies 1.8k views
Original Post
gordon13
gordon13
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.