spheremapped celshading

Blitz3D Forums/Blitz3D Programming/spheremapped celshading

make an image in paint. color it grey (128,128,128). then draw a white circle in the top left. it'll like this

.............###
.............###
............####
............####
...........#####
...........#####
........########
.....###########
################
################


where . is white and # is grey.

then save it, and in B3D, loat it like this

celshade=loadtexture("celshade.bmp".1+64)

and texture your objects like this

entitytexture <entity>,celshade,1

and make sure you

entityfx entity,1

and now it'll look celshaded.