Shaders



dswKnurl - sinusoidal displacement shader



the dswKnurl shader wraps a sinusoidal displacement on a surface.

This example shows how dswKnurl works on some object surfaces. The first column shows the objects without displacement. The second column shows the objects with dswKnurl calculating the displacement along the s axis. The third column shows the objects with dswKnurl calculating the displacement along the t axis.

 


Parameter

Data Type

Usage

Example

freq

float

Frequency of the knurl

freq = 10

depth

float

The maximum displacement

depth = 0.05

sORt

0 or 1

Selects direction of knurl

  • 0 = s axis
  • 1 = t axis

sORt = 0

 


View the dswKnurl.sl shader source

Download the dswKnurl package for Presenter 3D

 


HOME

NEW

LINKS

GALLERY

ARTICLES

PLUG-INS

RENDERMAN

Switch to Frame View




Copyright © 1997 by WebNation
All trademarks are the property of their respective holders