odd entityshininess problem

Blitz3D Forums/Blitz3D Beginners Area/odd entityshininess problem

here is my code.

Graphics3D 640,480,0,2

cam = CreateCamera()
TurnEntity cam,90,0,0
MoveEntity cam,0,0,-10

lit = CreateLight()
;MoveEntity lit,0,5,5
TurnEntity lit,90,0,0

;ripple = CreateMesh()
ripple = CreateCube()
ripsurf = CreateSurface(ripple)

v1 = AddVertex(ripsurf,-1,0,-1)
v2 = AddVertex(ripsurf,-1,0,1)
v3 = AddVertex(ripsurf,1,0,-1)
v4 = AddVertex(ripsurf,1,0,1)

t1 = AddTriangle(ripsurf,v1,v2,v3)
t2 = AddTriangle(ripsurf,v2,v4,v3)
t3 = AddTriangle(ripsurf,v2,v1,v3)
t4 = AddTriangle(ripsurf,v2,v3,v4)


EntityColor ripple,255,0,0

EntityShininess ripple,1

FlipMesh ripple

While Not KeyDown(1)
Cls

TurnEntity ripple,1,0,0

UpdateWorld()
RenderWorld()
Flip
Wend



I was confused when I discovered that the red triangle that I created didn't have the same shininess effects as the rest of the cube. does anyone know what I am doing wrong or why this is happening?