Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion EXPERIMENTS/BadSSIL.omwfx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ shared {
float d_v = dot(d.rgb, vec3(0.333)) * d.a;
float e_v = dot(e.rgb, vec3(0.333)) * e.a;

float eles[5] = {a_v, b_v, c_v, d_v, e_v};
float eles[5];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

float eles[5] = float[](a_v, b_v, c_v, d_v, e_v); is the idiomatic way to do this supported by 1.20 spec.

Also, use spaces for formatting. 😿

eles[0] = a_v;
eles[1] = b_v;
eles[2] = c_v;
eles[3] = d_v;
eles[4] = e_v;
for(int n = 0; n < 5; n++)
{
for(int i = 0; i < 5; i++)
Expand Down