Add parameter annotations to most orx-fx filters

This commit is contained in:
Edwin Jakobs
2020-02-02 11:13:38 +01:00
parent 396f859d6a
commit adf4dc33c3
10 changed files with 74 additions and 10 deletions

View File

@@ -3,12 +3,17 @@ package org.openrndr.extra.fx.tonemap
import org.openrndr.draw.Filter
import org.openrndr.draw.Shader
import org.openrndr.extra.fx.filterFragmentCode
import org.openrndr.extra.parameters.Description
import org.openrndr.extra.parameters.DoubleParameter
/**
* Uncharted 2 tonemap filter
*/
@Description("Uncharted 2 tonemap")
class Uncharted2Tonemap : Filter(Shader.createFromCode(filterVertexCode, filterFragmentCode("tonemap/uncharted2-tonemap.frag"))) {
var exposureBias by parameters
@DoubleParameter("exposure bias", 0.0, 128.0)
var exposureBias:Double by parameters
init {
exposureBias = 2.0
}