31 lines
639 B
Plaintext
31 lines
639 B
Plaintext
|
uniform vec3 diffuse;
|
||
|
uniform float opacity;
|
||
|
|
||
|
#include <common>
|
||
|
#include <uv_pars_fragment>
|
||
|
#include <map_pars_fragment>
|
||
|
#include <fog_pars_fragment>
|
||
|
#include <logdepthbuf_pars_fragment>
|
||
|
#include <clipping_planes_pars_fragment>
|
||
|
|
||
|
void main() {
|
||
|
|
||
|
#include <clipping_planes_fragment>
|
||
|
|
||
|
vec3 outgoingLight = vec3( 0.0 );
|
||
|
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
|
|
||
|
#include <logdepthbuf_fragment>
|
||
|
#include <map_fragment>
|
||
|
#include <alphatest_fragment>
|
||
|
|
||
|
outgoingLight = diffuseColor.rgb;
|
||
|
|
||
|
gl_FragColor = vec4( outgoingLight, diffuseColor.a );
|
||
|
|
||
|
#include <tonemapping_fragment>
|
||
|
#include <encodings_fragment>
|
||
|
#include <fog_fragment>
|
||
|
|
||
|
}
|