public LensFlareTexturePanel() { super(); orthographicMatrix = new Matrix4f().Orthographic2D(); orthoTransform = new Transform(); setConfig(new AdditiveBlending()); setShader(LensFlareShader.getInstance()); }
public TerrainQuadtree(Map<NodeComponentType, NodeComponent> components, int rootChunkCount, float horizontalScaling) { super(); Transform worldTransformFace0 = new Transform(); worldTransformFace0.setTranslation(-0.5f * horizontalScaling, 0, -0.5f * horizontalScaling); worldTransformFace0.setScaling(horizontalScaling); for (int i=0; i<rootChunkCount; i++){ for (int j=0; j<rootChunkCount; j++){ addChild(createChildChunk(components, quadtreeCache, worldTransformFace0, new Vec2f(1f * i/(float)rootChunkCount,1f * j/(float)rootChunkCount), 0, new Vec2f(i,j))); } } }
Transform worldTransformFace0 = new Transform(); worldTransformFace0.setTranslation(-0.5f * horizontalScaling, 0.5f * horizontalScaling, -0.5f * horizontalScaling); Transform worldTransformFace1 = new Transform(); worldTransformFace1.setTranslation(-0.5f * horizontalScaling, 0.5f * horizontalScaling, -0.5f * horizontalScaling); Transform worldTransformFace2 = new Transform(); worldTransformFace2.setTranslation(-0.5f * horizontalScaling, 0.5f * horizontalScaling, -0.5f * horizontalScaling); Transform worldTransformFace3 = new Transform(); worldTransformFace3.setTranslation(-0.5f * horizontalScaling, 0.5f * horizontalScaling, -0.5f * horizontalScaling); Transform worldTransformFace4 = new Transform(); worldTransformFace4.setTranslation(-0.5f * horizontalScaling, 0.5f * horizontalScaling, -0.5f * horizontalScaling); Transform worldTransformFace5 = new Transform(); worldTransformFace5.setTranslation(-0.5f * horizontalScaling, -0.5f * horizontalScaling, -0.5f * horizontalScaling);