Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
0.8.4:default-material [2023/01/31 14:02] – [Changing Shaders at DesignTime] admin0.8.4:default-material [2023/01/31 14:07] (current) – [Changing Shaders at DesignTime] admin
Line 1350: Line 1350:
 Since 0.8.4 it's possible to modify your default shader at designtime, by using published properties *VertexShader* or *SurfaceShader*. Since 0.8.4 it's possible to modify your default shader at designtime, by using published properties *VertexShader* or *SurfaceShader*.
  
-Simply select your default material source and open the text editor of the property. An empty GLSL function should be visible depending on the shader used.+Simply select your default material source, go to object inspector and open the text editor of the property. An empty GLSL function should be visible depending on the shader used.
  
 For VertexShader: For VertexShader:
Line 1367: Line 1367:
  
 You can then modify or extend the shader functionality. You can then modify or extend the shader functionality.
-Please have a look a the section [[Shader Variables|]] for the available fields in TLocals structure.+Please have a look a the section [[#tgorillaglobalsnode_globals|Shader-Variables]] for the available fields in TLocals structure.
  
 **NOTICE:** //Modifying the vertex position in vertex-shader all 3 fields "DATA.Position", "DATA.TransfVertexPos" and "DATA.WorldViewProjVertPos" need to be modified. Otherwise their basis might not be equal which leads to unexpected effects!// **NOTICE:** //Modifying the vertex position in vertex-shader all 3 fields "DATA.Position", "DATA.TransfVertexPos" and "DATA.WorldViewProjVertPos" need to be modified. Otherwise their basis might not be equal which leads to unexpected effects!//