[orx-fx] Change mppFilterShader to use new filterShaderFromCode

This commit is contained in:
Edwin Jakobs
2021-12-06 23:00:54 +01:00
parent 9fee0d5188
commit 1ec4550cc7

View File

@@ -7,7 +7,6 @@ import org.openrndr.draw.filterShaderFromCode
import org.openrndr.internal.Driver
import org.openrndr.resourceUrl
fun mppFilterShader(code: String, name: String) : Shader =
filterShaderFromCode("${Driver.instance.shaderConfiguration()}\n${code}", name)
fun mppFilterShader(code: String, name: String) : Shader = filterShaderFromCode(code, name, includeShaderConfiguration = true)
internal data class ColorBufferDescription(val width: Int, val height: Int, val contentScale: Double, val format: ColorFormat, val type: ColorType)