March 2018
Beginner
274 pages
6h 1m
English
Okay, so that's all the Java code we need to write in order to calculate and set our new distance variable. Next, we want to open up the shader program and modify the code for our needs. Follow the given steps to modify the shader program:

uniform mat4 u_ModelViewProjection;uniform vec4 u_Color;uniform float u_PointSize;uniform float u_FurthestPoint;attribute vec4 a_Position;varying vec4 v_Color;void main() { float t = length(a_Position)/u_FurthestPoint; v_Color ...Read now
Unlock full access