[orx-shade-styles] Add visualizeNormals shade style.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package org.openrndr.extra.shadestyles.spatial
|
||||
|
||||
import org.openrndr.draw.shadeStyle
|
||||
|
||||
val visualizeNormals by lazy {
|
||||
shadeStyle {
|
||||
fragmentTransform = """
|
||||
x_fill = vec4(normalize(v_viewNormal)*0.5+0.5, 1.0) ;
|
||||
""".trimIndent()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user