Point planet renderer
@@ -157,6 +157,10 @@ public class ImmediateRenderer3D{
numSetTexCoords += 2;
}
+ public void normal(Vec3 v){
+ normal(v.x, v.y, v.z);
+ }
+
public void normal(float x, float y, float z){
final int idx = vertexIdx + normalOffset;
vertices[idx] = x;
@@ -164,6 +168,10 @@ public class ImmediateRenderer3D{
vertices[idx + 2] = z;
}
+ public void vertex(Vec3 v){
+ vertex(v.x, v.y, v.z);
+ }
+
public void vertex(float x, float y, float z){
final int idx = vertexIdx;
vertices[idx] = x;
