Sha256: ceaae545f8110405d7f952324e66132cc8e15cbb6c1d53ebe993dbe8941323ae

Contents?: true

Size: 1.24 KB

Versions: 21

Compression:

Stored size: 1.24 KB

Contents

uniform vec3 ambientLightColor;

#if MAX_DIR_LIGHTS > 0

	uniform vec3 directionalLightColor[ MAX_DIR_LIGHTS ];
	uniform vec3 directionalLightDirection[ MAX_DIR_LIGHTS ];

#endif

#if MAX_HEMI_LIGHTS > 0

	uniform vec3 hemisphereLightSkyColor[ MAX_HEMI_LIGHTS ];
	uniform vec3 hemisphereLightGroundColor[ MAX_HEMI_LIGHTS ];
	uniform vec3 hemisphereLightDirection[ MAX_HEMI_LIGHTS ];

#endif

#if MAX_POINT_LIGHTS > 0

	uniform vec3 pointLightColor[ MAX_POINT_LIGHTS ];

	uniform vec3 pointLightPosition[ MAX_POINT_LIGHTS ];
	uniform float pointLightDistance[ MAX_POINT_LIGHTS ];
	uniform float pointLightDecay[ MAX_POINT_LIGHTS ];

#endif

#if MAX_SPOT_LIGHTS > 0

	uniform vec3 spotLightColor[ MAX_SPOT_LIGHTS ];
	uniform vec3 spotLightPosition[ MAX_SPOT_LIGHTS ];
	uniform vec3 spotLightDirection[ MAX_SPOT_LIGHTS ];
	uniform float spotLightAngleCos[ MAX_SPOT_LIGHTS ];
	uniform float spotLightExponent[ MAX_SPOT_LIGHTS ];
	uniform float spotLightDistance[ MAX_SPOT_LIGHTS ];
	uniform float spotLightDecay[ MAX_SPOT_LIGHTS ];

#endif

#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP ) || defined( USE_ENVMAP )

	in vec3 vWorldPosition;

#endif

#ifdef WRAP_AROUND

	uniform vec3 wrapRGB;

#endif

in vec3 vViewPosition;

#ifndef FLAT_SHADED

	in vec3 vNormal;

#endif

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
mittsu-opengl-0.5.1 lib/mittsu/opengl/shader/chunks/lights_phong_pars_fragment.glsl
mittsu-0.4.1 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-opengl-0.5.0 lib/mittsu/opengl/shader/chunks/lights_phong_pars_fragment.glsl
mittsu-0.4.0 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.3.3 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.3.2 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.3.1 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.3.0 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.2.4 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.2.3 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.2.2 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.2.1 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.2.0 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.1.7 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.1.6 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.1.5 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.1.4 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.1.3 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.1.2 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl
mittsu-0.1.1 lib/mittsu/renderers/shaders/shader_chunk/lights_phong_pars_fragment.glsl