Search found 2 matches

by yuange
Tue Jun 03, 2014 3:38 am
Forum: Advanced Help
Topic: How can I set more than one material type for the node
Replies: 4
Views: 935

Re: How can I set more than one material type for the node

Sorry, both the gl_position and gl_FragColor are diffent in the two shaders. How can I put them into one file. Maybe I can use if...else... in the shader. If I do this, How can I give the flag number in the OnsetConstants().
If anyone knows, please let me know. Thank you very much! :D
by yuange
Thu May 29, 2014 8:19 am
Forum: Advanced Help
Topic: How can I set more than one material type for the node
Replies: 4
Views: 935

How can I set more than one material type for the node

Hi! I have create a IAnimatedMeshSceneNode to load a animatedMesh, and wrote a lighting shader and a shadow shader with GLSL. Now I need to add both lighting effect and shadow effect to the same animatedMeshSceneNode using setMaterialType(). I tried to call setMaterialType() twice. But the second wi...