Examples of GLSLShaderDataLogic


Examples of com.ardor3d.renderer.state.GLSLShaderDataLogic

                _geometryClipmapShader.setUniform("minLevel", 0f);

                _geometryClipmapShader.setUniform("showDebug", textureClipmap.isShowDebug() ? 1.0f : 0.0f);
            }

            _geometryClipmapShader.setShaderDataLogic(new GLSLShaderDataLogic() {
                public void applyData(final GLSLShaderObjectsState shader, final Mesh mesh, final Renderer renderer) {
                    if (mesh instanceof ClipmapLevel) {
                        shader.setUniform("vertexDistance", (float) ((ClipmapLevel) mesh).getVertexDistance());
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.