
* Add 3 simple templates: ** empty_shader.osl: A basic shader declaration to start with ** wireframe.osl: Simple wireframe shader ** noise.osl: Simple noise shader, with 3 noise types.
10 lines
195 B
Plaintext
10 lines
195 B
Plaintext
#include "stdosl.h"
|
|
#include "oslutil.h"
|
|
|
|
shader wireframe(
|
|
float Line_Width = 2.0,
|
|
int Raster = 1,
|
|
output float Wire = 0.0)
|
|
{
|
|
Wire = wireframe("triangles", Line_Width, Raster);
|
|
} |