Skip to content

Commit

Permalink
set EnableCap.ProgramPointSize
Browse files Browse the repository at this point in the history
  • Loading branch information
MV10 committed Sep 7, 2023
1 parent bd647f9 commit f76b942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mhh/mhh/Hosting/HostWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public HostWindow(EyeCandyWindowConfig windowConfig, EyeCandyCaptureConfig audio
protected override void OnLoad()
{
base.OnLoad();
GL.Enable(EnableCap.ProgramPointSize);
Eyecandy.BeginAudioProcessing();
}

Expand Down
4 changes: 2 additions & 2 deletions testcontent/colorbeat.frag
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ void main()
vec2 uv = fragCoord - 0.5;
uv.y *= (resolution.y / resolution.x);

float beat = texture(eyecandyShadertoy, vec2(0.1,0.25)).g;
float beat = texture(eyecandyShadertoy, vec2(0.1,0.25)).g * 0.5;

vec2 rd = vec2(atan(uv.x,uv.y), length(uv));

rd = vec2(rd.x+time*0.0, rd.y*(1.4-beat));

float ljud = texture(eyecandyShadertoy, vec2(rd.y*0.75, 0.25)).g * 0.3;
float ljud = texture(eyecandyShadertoy, vec2(rd.y*0.75, 0.25)).g * 0.5;

vec2 xygrid = 1.0-clamp(abs(sin(vec2(sin(rd.x),cos(rd.x))*rd.y*3.14159*10.0))*4.0, 0.0,1.0);
vec2 rdgrid = 1.0-clamp(abs(sin(rd*vec2(0.5,1.0)*16.0))*16.0*min(1.0,rd.y), 0.0,1.0);
Expand Down

0 comments on commit f76b942

Please sign in to comment.