Search found 1 match

by je06
Sat Dec 12, 2015 10:38 pm
Forum: General
Topic: GLSL Vertex Gradient
Replies: 0
Views: 840

GLSL Vertex Gradient

I'm trying to write a GLSL fragment shader that will apply a gradient based off of three point on screen's color. My code so far uniform vec2 p1; //Point 1 xy coordinates on screen uniform vec2 p2; //Point 2 xy coordinates on screen uniform vec2 p3; //Point 3 xy coordinates on screen uniform number ...