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

fix shader dColorType_groupInstance texture read

parent aae27dea
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
#elif defined(dColorType_group)
vColor.rgb = readFromTexture(tColor, aGroup, uColorTexDim).rgb;
#elif defined(dColorType_groupInstance)
vColor.rgb = readFromTexture(tColor, aGroup * float(uGroupCount) + aGroup, uColorTexDim).rgb;
vColor.rgb = readFromTexture(tColor, aInstance * float(uGroupCount) + aGroup, uColorTexDim).rgb;
#elif defined(dColorType_objectPicking)
vColor = encodeIdRGBA(float(uObjectId));
#elif defined(dColorType_instancePicking)
......
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