Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/nodes.cpp
| Context not available. | |||||
| SOCKET_OUT_COLOR(color, "Color"); | SOCKET_OUT_COLOR(color, "Color"); | ||||
| SOCKET_OUT_FLOAT(fac, "Fac"); | SOCKET_OUT_FLOAT(fac, "Fac"); | ||||
| SOCKET_OUT_VECTOR(vector_out, "Offset"); | |||||
| return type; | return type; | ||||
| } | } | ||||
| Context not available. | |||||
| ShaderInput *exponent_in = input("Exponent"); | ShaderInput *exponent_in = input("Exponent"); | ||||
| ShaderOutput *color_out = output("Color"); | ShaderOutput *color_out = output("Color"); | ||||
| ShaderOutput *fac_out = output("Fac"); | ShaderOutput *fac_out = output("Fac"); | ||||
| ShaderOutput *vector_out = output("Offset"); | |||||
| if(vector_in->link) compiler.stack_assign(vector_in); | if(vector_in->link) compiler.stack_assign(vector_in); | ||||
| if(scale_in->link) compiler.stack_assign(scale_in); | if(scale_in->link) compiler.stack_assign(scale_in); | ||||
| Context not available. | |||||
| )); | )); | ||||
| compiler.add_node( | compiler.add_node( | ||||
| __float_as_int(scale), | __float_as_int(scale), | ||||
| __float_as_int(exponent)); | __float_as_int(exponent), | ||||
| compiler.encode_uchar4( | |||||
| compiler.stack_assign(vector_out) | |||||
| )); | |||||
| tex_mapping.compile_end(compiler, vector_in, vector_offset); | tex_mapping.compile_end(compiler, vector_in, vector_offset); | ||||
| } | } | ||||
| Context not available. | |||||