Files
test2/intern/cycles/kernel/osl/shaders/node_wireframe.osl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
515 B
Plaintext
Raw Normal View History

/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
*
* SPDX-License-Identifier: Apache-2.0 */
#include "oslutil.h"
#include "stdcycles.h"
shader node_wireframe(string bump_offset = "center",
int use_pixel_size = 0,
float Size = 0.01,
output float Fac = 0.0)
{
if (bump_offset == "dx") {
P += Dx(P) * BUMP_DX;
}
else if (bump_offset == "dy") {
P += Dy(P) * BUMP_DY;
}
Fac = wireframe("triangles", Size, use_pixel_size);
}