Skip to content

Commit a6bf6fa

Browse files
committed
Fix implicit conversion isssue
1 parent b3c6d00 commit a6bf6fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arcade/examples/transform_feedback.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def __init__(self, width, height, title):
4343
void main() {
4444
// Let's just give them a "random" color based on the vertex id
4545
color = vec3(
46-
mod((gl_VertexID * 100 % 11) / 10.0, 1.0),
47-
mod((gl_VertexID * 100 % 27) / 10.0, 1.0),
48-
mod((gl_VertexID * 100 % 71) / 10.0, 1.0));
46+
mod(float(gl_VertexID * 100 % 11) / 10.0, 1.0),
47+
mod(float(gl_VertexID * 100 % 27) / 10.0, 1.0),
48+
mod(float(gl_VertexID * 100 % 71) / 10.0, 1.0));
4949
// Pass the point position to primitive assembly
5050
gl_Position = vec4(in_pos, 0.0, 1.0);
5151
}

0 commit comments

Comments
 (0)