Skip to content

Commit 08b68e7

Browse files
committed
lose precision effect
1 parent 1275f44 commit 08b68e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎samples/texture_integer.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646

4747
void main()
4848
{
49-
uvec4 intColor = texture(diffuse, st);
49+
uvec4 intColor = texture(diffuse, st) / 50u;
50+
intColor *= 50u;
5051
color = vec4(intColor) / 255.0;
5152
}
5253
</script>

0 commit comments

Comments
 (0)