plug-in-lighting

Tom Bech & Federico Mena Quintero

Description

Apply various lighting effects to an image

Help

No help yet


Type

unknown

Parameters

Type Name Description
PF_INT run-mode The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }
PF_IMAGE image Input image
PF_DRAWABLE drawable Input drawable
PF_DRAWABLE bumpdrawable Bumpmap drawable (set to 0 if disabled)
PF_DRAWABLE envdrawable Environmentmap drawable (set to 0 if disabled)
PF_INT dobumpmap Enable bumpmapping (TRUE/FALSE)
PF_INT doenvmap Enable envmapping (TRUE/FALSE)
PF_INT bumpmaptype Type of mapping (0=linear,1=log, 2=sinusoidal, 3=spherical)
PF_INT lighttype Type of lightsource (0=point,1=directional,3=spot,4=none)
PF_COLOUR lightcolor Lightsource color (r,g,b)
PF_FLOAT lightposition-x Lightsource position (x,y,z)
PF_FLOAT lightposition-y Lightsource position (x,y,z)
PF_FLOAT lightposition-z Lightsource position (x,y,z)
PF_FLOAT lightdirection-x Lightsource direction [x,y,z]
PF_FLOAT lightdirection-y Lightsource direction [x,y,z]
PF_FLOAT lightdirection-z Lightsource direction [x,y,z]
PF_FLOAT ambient-intensity Material ambient intensity (0..1)
PF_FLOAT diffuse-intensity Material diffuse intensity (0..1)
PF_FLOAT diffuse-reflectivity Material diffuse reflectivity (0..1)
PF_FLOAT specular-reflectivity Material specular reflectivity (0..1)
PF_FLOAT highlight Material highlight (0..->), note: it's expotential
PF_INT antialiasing Apply antialiasing (TRUE/FALSE)
PF_INT newimage Create a new image (TRUE/FALSE)
PF_INT transparentbackground Make background transparent (TRUE/FALSE)

Return

None