Skip to content

Commit d422a85

Browse files
committed
Added a commented out srgb conversion
1 parent 66f0261 commit d422a85

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/initial-content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ void RenderGraphMain()
114114
sc.GetSize(),
115115
sc
116116
);
117-
117+
ContextFloat("phase") += 1e-2 * SliderFloat("Speed", 0.0f, 2.0f, 0.4f);
118118
float color = SliderFloat("Color", 0.0f, 1.0f, 0.5f);
119119
ColorPass(
120120
vec3(color),
121-
vec2(-0.8, cos(2.0 * (SliderFloat("P", 0.0f, 2.0f, 0.7f) + frame_idx * 1e-2 * SliderFloat("Speed", 0.0f, 2.0f, 0.4f)))),
121+
vec2(-0.8, cos(2.0 * (SliderFloat("P", 0.0f, 2.0f, 0.7f) + ContextFloat("phase")))),
122122
sc.GetSize(),
123123
sc
124124
);

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ function InitWebGL(
149149
void main()
150150
{
151151
out_color = vec4(texelFetch(tex, ivec2(gl_FragCoord.xy), 0).rgb, 1.0);
152+
//out_color = vec4(pow(clamp(texelFetch(tex, ivec2(gl_FragCoord.xy), 0).rgb, vec3(0.0), vec3(1.0)), vec3(1.0 / 2.2)), 1.0);
152153
}`);
153154

154155
return {

0 commit comments

Comments
 (0)