Add film grain and tonemap filters
This commit is contained in:
15
orx-fx/src/main/kotlin/tonemap/Uncharted2Tonemap.kt
Normal file
15
orx-fx/src/main/kotlin/tonemap/Uncharted2Tonemap.kt
Normal file
@@ -0,0 +1,15 @@
|
||||
package org.openrndr.extra.fx.tonemap
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Shader
|
||||
import org.openrndr.extra.fx.filterFragmentCode
|
||||
|
||||
/**
|
||||
* Uncharted 2 tonemap filter
|
||||
*/
|
||||
class Uncharted2Tonemap : Filter(Shader.createFromCode(filterVertexCode, filterFragmentCode("tonemap/uncharted2-tonemap.frag"))) {
|
||||
var exposureBias by parameters
|
||||
init {
|
||||
exposureBias = 2.0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user