Can anyone explain?

A secret forum for people who preorder Overgrowth!
Post Reply
User avatar
camino1961
Posts: 34
Joined: Sat Oct 24, 2009 5:08 pm
Location: New York USA
Contact:

Can anyone explain?

Post by camino1961 » Tue Nov 10, 2009 9:13 pm

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

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: Can anyone explain?

Post by Endoperez » Wed Nov 11, 2009 3:02 am

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.

User avatar
tkaza
Posts: 15
Joined: Tue Nov 03, 2009 3:36 am
Contact:

Re: Can anyone explain?

Post by tkaza » Wed Nov 11, 2009 7:43 pm

The shader type for the models texture
cubemap = tangent space
cubemapobj = object space

These are used to reflect how the normals are shown.

David
Project Leader
Posts: 1995
Joined: Wed Nov 19, 2003 10:45 pm
Contact:

Re: Can anyone explain?

Post by David » Wed Nov 11, 2009 11:03 pm

"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.

Post Reply