Java Code Examples for com.badlogic.gdx.graphics.glutils.ShaderProgram#fetchUniformLocation()
The following examples show how to use
com.badlogic.gdx.graphics.glutils.ShaderProgram#fetchUniformLocation() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PBRShader.java From gdx-gltf with Apache License 2.0 | 5 votes |
@Override public void init(ShaderProgram program, Renderable renderable) { super.init(program, renderable); u_mipmapScale = program.fetchUniformLocation("u_mipmapScale", false); u_texCoord0Transform = program.fetchUniformLocation("u_texCoord0Transform", false); u_texCoord1Transform = program.fetchUniformLocation("u_texCoord1Transform", false); u_morphTargets1 = program.fetchUniformLocation("u_morphTargets1", false); u_morphTargets2 = program.fetchUniformLocation("u_morphTargets2", false); u_ambientLight = program.fetchUniformLocation("u_ambientLight", false); }
Example 2
Source File: CubesShaderProvider.java From Cubes with MIT License | 5 votes |
@Override public void init(ShaderProgram program) { u_cameraposition = program.fetchUniformLocation("u_cameraposition", true); u_skycolor = program.fetchUniformLocation("u_skycolor", true); u_fogdistance = program.fetchUniformLocation("u_fogdistance", true); u_minfogdistance = program.fetchUniformLocation("u_minfogdistance", true); }
Example 3
Source File: CubesShaderProvider.java From Cubes with MIT License | 4 votes |
@Override public void init(ShaderProgram program) { u_aoTexture = program.fetchUniformLocation("u_aoTexture", false); u_aoUVTransform = program.fetchUniformLocation("u_aoUVTransform", false); u_aoStrength = program.fetchUniformLocation("u_aoStrength", false); }