un-hardcode fog config
This commit is contained in:
21
src/main/kotlin/CustomFloatAttribute.kt
Normal file
21
src/main/kotlin/CustomFloatAttribute.kt
Normal file
@ -0,0 +1,21 @@
|
||||
package gay.pizza.CavesOfJolk
|
||||
|
||||
import com.badlogic.gdx.graphics.g3d.attributes.FloatAttribute
|
||||
|
||||
class CustomFloatAttribute private constructor(type: Long, value: Float): FloatAttribute(type, value)
|
||||
{
|
||||
companion object
|
||||
{
|
||||
const val FogNearAlias = "fogNear"
|
||||
val FogNear = register(FogNearAlias)
|
||||
fun createFogNear(value: Float) = CustomFloatAttribute(FogNear, value)
|
||||
|
||||
const val FogFarAlias = "fogFar"
|
||||
val FogFar = register(FogFarAlias)
|
||||
fun createFogFar(value: Float) = CustomFloatAttribute(FogFar, value)
|
||||
|
||||
const val FogDensityAlias = "fogDensity"
|
||||
val FogDensity = register(FogDensityAlias)
|
||||
fun createFogDensity(value: Float) = CustomFloatAttribute(FogDensity, value)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user