What do these two lines of code control in the xml model file?
<ShaderPath>Data/GLSL/cubemap</ShaderPath>
<ShaderName>cubemap</ShaderName>
Thanks in advance,
camino1961
Can anyone explain?
-
- Posts: 34
- Joined: Sat Oct 24, 2009 5:08 pm
- Location: New York USA
- Contact:
Re: Can anyone explain?
Well, if you know what a shader is, it's a specific shader. Google for a good definition, I know what they are but can't explain properly.
Re: Can anyone explain?
The shader type for the models texture
cubemap = tangent space
cubemapobj = object space
These are used to reflect how the normals are shown.
cubemap = tangent space
cubemapobj = object space
These are used to reflect how the normals are shown.
Re: Can anyone explain?
"ShaderPath" is obsolete and doesn't do anything. "ShaderName" has the name of the shader that the object uses, which is mostly useful for specifying tangent vs. object, as tkaza said.