All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.phrases.TransformPhrases.kt Maven / Gradle / Ivy

The newest version!
package org.openrndr.orsl.shadergenerator.phrases

import org.openrndr.orsl.shadergenerator.annotations.IndexShaderBook
import org.openrndr.orsl.shadergenerator.annotations.ShaderBook
import org.openrndr.orsl.shadergenerator.annotations.ShaderPhrase
import org.openrndr.orsl.shadergenerator.annotations.WrapShaderBook

@IndexShaderBook
@WrapShaderBook
class TransformPhrases : ShaderBook{
    @ShaderPhrase
    val erot = """vec3 erot(vec3 p, vec3 ax, float ro) {
    return mix(dot(p,ax)*ax,p,cos(ro))+sin(ro)*cross(ax,p);
}"""
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy