Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/nodes.cpp
| Context not available. | |||||
| SOCKET_IN_COLOR(mortar, "Mortar", make_float3(0.0f, 0.0f, 0.0f)); | SOCKET_IN_COLOR(mortar, "Mortar", make_float3(0.0f, 0.0f, 0.0f)); | ||||
| SOCKET_IN_FLOAT(scale, "Scale", 5.0f); | SOCKET_IN_FLOAT(scale, "Scale", 5.0f); | ||||
| SOCKET_IN_FLOAT(mortar_size, "Mortar Size", 0.02f); | SOCKET_IN_FLOAT(mortar_size, "Mortar Size", 0.02f); | ||||
| SOCKET_IN_FLOAT(mortar_smooth, "Mortar Smooth", 0.0f); | |||||
| SOCKET_IN_FLOAT(bias, "Bias", 0.0f); | SOCKET_IN_FLOAT(bias, "Bias", 0.0f); | ||||
| SOCKET_IN_FLOAT(brick_width, "Brick Width", 0.5f); | SOCKET_IN_FLOAT(brick_width, "Brick Width", 0.5f); | ||||
| SOCKET_IN_FLOAT(row_height, "Row Height", 0.25f); | SOCKET_IN_FLOAT(row_height, "Row Height", 0.25f); | ||||
| Context not available. | |||||
| ShaderInput *mortar_in = input("Mortar"); | ShaderInput *mortar_in = input("Mortar"); | ||||
| ShaderInput *scale_in = input("Scale"); | ShaderInput *scale_in = input("Scale"); | ||||
| ShaderInput *mortar_size_in = input("Mortar Size"); | ShaderInput *mortar_size_in = input("Mortar Size"); | ||||
| ShaderInput *mortar_smooth_in = input("Mortar Smooth"); | |||||
| ShaderInput *bias_in = input("Bias"); | ShaderInput *bias_in = input("Bias"); | ||||
| ShaderInput *brick_width_in = input("Brick Width"); | ShaderInput *brick_width_in = input("Brick Width"); | ||||
| ShaderInput *row_height_in = input("Row Height"); | ShaderInput *row_height_in = input("Row Height"); | ||||
| Context not available. | |||||
| compiler.encode_uchar4( | compiler.encode_uchar4( | ||||
| compiler.stack_assign_if_linked(row_height_in), | compiler.stack_assign_if_linked(row_height_in), | ||||
| compiler.stack_assign_if_linked(color_out), | compiler.stack_assign_if_linked(color_out), | ||||
| compiler.stack_assign_if_linked(fac_out))); | compiler.stack_assign_if_linked(fac_out), | ||||
| compiler.stack_assign_if_linked(mortar_smooth_in))); | |||||
| compiler.add_node(compiler.encode_uchar4(offset_frequency, squash_frequency), | compiler.add_node(compiler.encode_uchar4(offset_frequency, squash_frequency), | ||||
| __float_as_int(scale), | __float_as_int(scale), | ||||
| Context not available. | |||||
| __float_as_int(offset), | __float_as_int(offset), | ||||
| __float_as_int(squash)); | __float_as_int(squash)); | ||||
| compiler.add_node(__float_as_int(mortar_smooth), | |||||
| SVM_STACK_INVALID, | |||||
| SVM_STACK_INVALID, | |||||
| SVM_STACK_INVALID); | |||||
| tex_mapping.compile_end(compiler, vector_in, vector_offset); | tex_mapping.compile_end(compiler, vector_in, vector_offset); | ||||
| } | } | ||||
| Context not available. | |||||