However the only way I could get it to work is by doing this:
Code: Select all
HardwareShader Texture DESBR
{
Shader "shaders/lighting.fp"
}
HardwareShader Texture DESBR2
{
Shader "shaders/lighting.fp"
}
HardwareShader Texture DESDOOR
{
Shader "shaders/lighting.fp"
}
HardwareShader Texture DESDOOR2
{
Shader "shaders/lighting.fp"
}
HardwareShader Texture DESEDGE
{
Shader "shaders/lighting.fp"
}
HardwareShader Texture DESGRASS
{
Shader "shaders/lighting.fp"
}
[ad infinitum]
I am hoping to instead just do something like omitting the texture name to make a shader apply to all of that type:
Code: Select all
HardwareShader Sprite
{
Shader "shaders/snaplighting.fp"
}
Code: Select all
HardwareShader Default
{
Shader "shaders/snaplighting.fp"
}
(There could very well be something I'm missing, but I tried many things, searched on the forum, looked at the source code... and the one example I came across of a lighting shader like I would like to do was done in the exact way I would like to avoid doing. So I'm pretty sure there doesn't exist a way to do this, but I'd love to be wrong)