123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef NODES_GLSLV
- #define NODES_GLSLV
- /*==============================================================================
- VARS
- ==============================================================================*/
- #var PARTICLE_BATCH 0
- /*============================================================================*/
- #if (USE_NODE_GEOMETRY_OR || USE_NODE_TEX_COORD_GE) && !PARTICLE_BATCH
- GLSL_IN vec3 a_orco_tex_coord;
- GLSL_OUT vec3 v_orco_tex_coord;
- #endif
- /*==============================================================================
- FUNCTIONS
- ==============================================================================*/
- #node TEX_COORD_UV
- #node_param GLSL_IN vec2 a_uv
- #node_param GLSL_OUT vec2 v_uv
- v_uv = a_uv;
- #endnode
- #node UV_MERGED
- #node_param GLSL_IN vec2 a_uv
- #node_param GLSL_OUT vec2 v_uv
- v_uv = a_uv;
- #endnode
- #node UVMAP
- #node_param GLSL_IN vec2 a_uv
- #node_param GLSL_OUT vec2 v_uv
- v_uv = a_uv;
- #endnode
- #node GEOMETRY_UV
- #node_param GLSL_IN vec2 a_uv
- #node_param GLSL_OUT vec2 v_uv
- v_uv = a_uv;
- #endnode
- #node GEOMETRY_VC
- #node_param GLSL_IN vec3 a_vertex_color
- #node_param GLSL_OUT vec3 v_vertex_color
- v_vertex_color = a_vertex_color;
- #endnode
- #node GEOMETRY_VC1
- #node_param GLSL_IN float a_vertex_color
- #node_param GLSL_OUT float v_vertex_color
- v_vertex_color = a_vertex_color;
- #endnode
- #node GEOMETRY_VC2
- #node_param GLSL_IN vec2 a_vertex_color
- #node_param GLSL_OUT vec2 v_vertex_color
- v_vertex_color = a_vertex_color;
- #endnode
- #node GEOMETRY_VC3
- #node_param GLSL_IN vec3 a_vertex_color
- #node_param GLSL_OUT vec3 v_vertex_color
- v_vertex_color = a_vertex_color;
- #endnode
- #nodes_global
- void nodes_main() {
- #if USE_NODE_GEOMETRY_OR || USE_NODE_TEX_COORD_GE
- v_orco_tex_coord = a_orco_tex_coord;
- #endif
- #nodes_main
- }
- #endif
|