Files
test2/intern/cycles/kernel/osl/shaders/node_voxel_texture_zero.osl
Lukas Stockner 90bcc3b5dc Fix #124646: Cycles: Point Density node still works on surfaces in OSL
This was already sort of disabled in 4.0 (in #109712), but still worked in OSL,
so let's make it consistent.

Pull Request: https://projects.blender.org/blender/blender/pulls/125928
2024-08-08 00:48:35 +02:00

19 lines
448 B
Plaintext

/* SPDX-FileCopyrightText: 2011-2024 Blender Foundation
*
* SPDX-License-Identifier: Apache-2.0 */
#include "stdcycles.h"
shader node_voxel_texture_zero(
string filename = "",
string interpolation = "linear",
int use_mapping = 0,
matrix mapping = matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
point Vector = P,
output float Density = 0,
output color Color = 0)
{
Density = 0;
Color = color(0, 0, 0);
}