Sha256: 6cc63f3cb787699701f1215ad19dfa4bd43cb6dbd46543a2c45709393d9fc74d

Contents?: true

Size: 977 Bytes

Versions: 19

Compression:

Stored size: 977 Bytes

Contents

#define PHONG
  out vec3 vViewPosition;
#ifndef FLAT_SHADED
  out vec3 vNormal;
#endif

#include common
#include map_pars_vertex
#include lightmap_pars_vertex
#include envmap_pars_vertex
#include lights_phong_pars_vertex
#include color_pars_vertex
#include morphtarget_pars_vertex
#include skinning_pars_vertex
#include shadowmap_pars_vertex
#include logdepthbuf_pars_vertex

void main() {
  #include map_vertex
  #include lightmap_vertex
  #include color_vertex

  #include morphnormal_vertex
  #include skinbase_vertex
  #include skinnormal_vertex
  #include defaultnormal_vertex

  #ifndef FLAT_SHADED // Normal computed with derivatives when FLAT_SHADED
    vNormal = normalize( transformedNormal );
  #endif

  #include morphtarget_vertex
  #include skinning_vertex
  #include default_vertex
  #include logdepthbuf_vertex

  vViewPosition = -mvPosition.xyz;

  #include worldpos_vertex
  #include envmap_vertex
  #include lights_phong_vertex
  #include shadowmap_vertex
}

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
mittsu-opengl-0.5.1 lib/mittsu/opengl/shader/lib/phong/phong_vertex.rbsl
mittsu-0.4.1 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-opengl-0.5.0 lib/mittsu/opengl/shader/lib/phong/phong_vertex.rbsl
mittsu-0.4.0 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.3.3 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.3.2 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.3.1 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.3.0 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.2.4 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.2.3 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.2.2 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.2.1 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.2.0 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.1.7 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.1.6 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.1.5 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.1.4 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.1.3 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
mittsu-0.1.2 lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl