[orx-dnk3] Add feature architecture and post processing effects

This commit is contained in:
Edwin Jakobs
2020-07-06 13:00:58 +02:00
parent 0b0691e9ae
commit 419c38cc25
63 changed files with 2164 additions and 187 deletions

View File

@@ -11,14 +11,20 @@ fun main() = application {
cubemap1.copyTo(cubemap2, 0, 0)
cubemap2.generateMipmaps()
val cma = arrayCubemap(256, 10)
val cma = arrayCubemap(cubemap1.width, 10)
for (i in 0 until 1) {
cubemap1.copyTo(cma, 8)
}
cma.generateMipmaps()
extend(Orbital()) {
}
extend {
drawer.shadeStyle = shadeStyle {
fragmentTransform = """
x_fill = texture(p_cma, vec4(va_position,0.0));
x_fill = texture(p_cma, vec4(va_position, 8.0));
"""
parameter("cubemap", cubemap2)
parameter("cma", cma)