Files
blender/release/scripts/templates_osl/wireframe.osl
Thomas Dinges f7e8ffdb85 OSL Templates:
* 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.
2012-12-30 03:11:52 +00:00

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);
}