Sha256: 4915a376cd8c7e6de16596702a6b472ae5a275be196d7152825b4aef01c9ee1e

Contents?: true

Size: 539 Bytes

Versions: 13

Compression:

Stored size: 539 Bytes

Contents

uniform float size;
// uniform float scale; // TODO

#include common
#include color_pars_vertex
#include shadowmap_pars_vertex
#include logdepthbuf_pars_vertex

void main() {
  #include color_vertex

  vec4 mvPosition = modelViewMatrix * vec4(position, 1.0);

  // #ifdef USE_SIZEATTENUATION
    // gl_PointSize = size * (scale / length(mvPosition.xyz));
  // #else
    gl_PointSize = size;
  // #endif

  gl_Position = projectionMatrix * mvPosition;

  #include logdepthbuf_vertex
  #include worldpos_vertex
  #include shadowmap_vertex
}

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
mittsu-opengl-0.5.1 lib/mittsu/opengl/shader/lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.4.1 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-opengl-0.5.0 lib/mittsu/opengl/shader/lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.4.0 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.3.3 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.3.2 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.3.1 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.3.0 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.2.4 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.2.3 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.2.2 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.2.1 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
mittsu-0.2.0 lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl