Include cycles glsl functions for vector rotation
This commit is contained in:
parent
6e0bfa272c
commit
930b2968fa
|
@ -4,6 +4,7 @@ import bpy
|
|||
from mathutils import Euler, Vector
|
||||
|
||||
import arm.material.cycles as c
|
||||
import arm.material.cycles_functions as c_functions
|
||||
from arm.material.parser_state import ParserState
|
||||
from arm.material.shader import floatstr, vec3str
|
||||
|
||||
|
@ -170,4 +171,4 @@ def parse_vectorrotate(node: bpy.types.ShaderNodeVectorRotate, out_socket: bpy.t
|
|||
state.curshader.add_function(c_functions.str_euler_to_mat3)
|
||||
return f'vec3( mat3(({input_invert} < 0.0) ? transpose(euler_to_mat3({input_rotation})) : euler_to_mat3({input_rotation})) * ({input_vector} - {input_center}) + {input_center})'
|
||||
|
||||
return f'(vec3(1.0, 0.0, 0.0))'
|
||||
return f'(vec3(1.0, 0.0, 0.0))'
|
||||
|
|
Loading…
Reference in a new issue