Skip to content
Snippets Groups Projects
Commit c80474cd authored by Alexander Rose's avatar Alexander Rose
Browse files

no (flat) interpolation in shaders for picking (only webgl2)

parent bcec3f8c
No related branches found
No related tags found
No related merge requests found
#if defined(dColorType_uniform)
uniform vec3 uColor;
#elif defined(dColorType_attribute) || defined(dColorType_instance) || defined(dColorType_group) || defined(dColorType_groupInstance) || defined(dColorType_objectPicking) || defined(dColorType_instancePicking) || defined(dColorType_groupPicking)
#elif defined(dColorType_attribute) || defined(dColorType_instance) || defined(dColorType_group) || defined(dColorType_groupInstance)
varying vec4 vColor;
#elif defined(dColorType_objectPicking) || defined(dColorType_instancePicking) || defined(dColorType_groupPicking)
#if __VERSION__ != 300
varying vec4 vColor;
#else
flat in vec4 vColor;
#endif
#endif
\ No newline at end of file
......@@ -8,6 +8,10 @@
uniform vec2 uColorTexDim;
uniform sampler2D tColor;
#elif defined(dColorType_objectPicking) || defined(dColorType_instancePicking) || defined(dColorType_groupPicking)
varying vec4 vColor;
#if __VERSION__ != 300
varying vec4 vColor;
#else
flat out vec4 vColor;
#endif
#pragma glslify: encodeFloatRGB = require(../utils/encode-float-rgb.glsl)
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment