Wednesday, February 21, 2007

Shaders

In Creator:

Within Creator, there is a shader palette. Shaders are assigned one only, per-polygon. Each palette entry can specify a vertex shader file and entry point and a fragment shader file and entry point. They can be the same file, or not. Shader file paths may be set as absolute, relative, or "no path". Only CG and CgFX shader types are rendered in Creator. I have used ARBVP1, because it has built-in value names that can be accessed by the shader. VP20, VP30, and "use latest" are also available options.

The shader effect can be viewed in the Creator window by setting the texture layer in the "view" panel to "blend", and then starting the shader. If the shader uses fog, the fog control dialog also needs to be started.

Accessing VTree's built-in shaders from a model

http://workie.pbwiki.com/f/built_in_shaders.htm

World map links

No comments: