Recent change in commit 3f778150a9
caused compilation errors in Metal due to type ambiguity. Updating call to
explicitly utilise floats where appropriate.
Authored by Apple: Michael Parkin-White
Co-authored-by: Michael Parkin-White <mparkinwhite@apple.com>
Pull Request: https://projects.blender.org/blender/blender/pulls/115301
16 lines
421 B
GLSL
16 lines
421 B
GLSL
/* SPDX-FileCopyrightText: 2019-2022 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
void node_bsdf_transparent(vec4 color, float weight, out Closure result)
|
|
{
|
|
color = max(color, vec4(0.0));
|
|
|
|
ClosureTransparency transparency_data;
|
|
transparency_data.weight = weight;
|
|
transparency_data.transmittance = color.rgb;
|
|
transparency_data.holdout = 0.0;
|
|
|
|
result = closure_eval(transparency_data);
|
|
}
|