Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_filter.cc
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| public: | public: | ||||
| using NodeOperation::NodeOperation; | using NodeOperation::NodeOperation; | ||||
| void execute() override | void execute() override | ||||
| { | { | ||||
| GPUShader *shader = shader_manager().get(get_shader_name()); | GPUShader *shader = shader_manager().get(get_shader_name()); | ||||
| GPU_shader_bind(shader); | GPU_shader_bind(shader); | ||||
| GPU_shader_uniform_mat3_as_mat4(shader, "kernel", get_filter_kernel().ptr()); | GPU_shader_uniform_mat3_as_mat4(shader, "ukernel", get_filter_kernel().ptr()); | ||||
| const Result &input_image = get_input("Image"); | const Result &input_image = get_input("Image"); | ||||
| input_image.bind_as_texture(shader, "input_tx"); | input_image.bind_as_texture(shader, "input_tx"); | ||||
| const Result &factor = get_input("Fac"); | const Result &factor = get_input("Fac"); | ||||
| factor.bind_as_texture(shader, "factor_tx"); | factor.bind_as_texture(shader, "factor_tx"); | ||||
| const Domain domain = compute_domain(); | const Domain domain = compute_domain(); | ||||
| ▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines | |||||