Game Development Community

Sth about the TGEA source code

by Noar · in Jobs · 12/18/2007 (8:30 am) · 2 replies

Hello everyone, I'm analysing the code of TEGA, but meeting some problem. I wanna know who have somting of code analysing material. or I also wannna find a friend to analyse the code with me.

About the author

Recent Threads


#1
12/18/2007 (9:29 am)
How are you analyzing the code?
#2
12/18/2007 (10:14 am)
I assume you're talking about the script code since you're talking about materials.

there's 3 parts to materials: the shader code, the shader datablock, and the material definition. if you use a regular normal material definition, then you don't need to worry about the shader code or the shader datablock. for regular materials, the shaders are generated procedurally. but if you use a custom material, you need to create a shader file for the material and then create a shader datablock which references the pixel and vertex shader files. the custom material then requires a reference to your custom shader datablock.

look at the tgea documentation.