commonMain.ru.casperix.opengl.renderer.shader.ShaderController.kt Maven / Gradle / Ivy
package ru.casperix.opengl.renderer.shader
import ru.casperix.opengl.renderer.impl.ShaderAttributes
class ShaderController(val shader: ShaderBuffer, val attributes: ShaderAttributes) {
val uAmbientColor = ShaderUniform.from(shader, "uAmbientColor")
val uLightPos = ShaderUniform.from(shader, "uLightPos")
val uModel = ShaderUniform.from(shader, "uModel")
val uProjectionViewModel = ShaderUniform.from(shader, "uProjectionViewModel")
val uAlbedoTexture = ShaderUniform.from(shader, "uAlbedoTexture")
val uTexScale = ShaderUniform.from(shader, "uTexScale")
val uNormalTexture = ShaderUniform.from(shader, "uNormalTexture")
val uSpecularTexture = ShaderUniform.from(shader, "uSpecularTexture")
val uMaterialColor = ShaderUniform.from(shader, "uMaterialColor")
val uTextureArray = ShaderUniform.from(shader, "uTextureArray")
val uTileSmoothMode = ShaderUniform.from(shader, "uTileSmoothMode")
val uTileMapTexture = ShaderUniform.from(shader, "uTileMapTexture")
}