MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / RenderObject_SetGouraud

Function RenderObject_SetGouraud

Descent3/renderobject.cpp:1464–1471  ·  view source on GitHub ↗

Sets the polygon render object type to gouraud (one lightval for each vertex)

Source from the content-addressed store, hash-verified

1462}
1463// Sets the polygon render object type to gouraud (one lightval for each vertex)
1464void RenderObject_SetGouraud(vector *dir, float r, float g, float b, float scalar) {
1465 RenderObject_LightDirection = *dir;
1466 RenderObjectStaticRedValue = r;
1467 RenderObjectStaticGreenValue = g;
1468 RenderObjectStaticBlueValue = b;
1469 RenderObjectStaticScalar = scalar;
1470 RenderObjectType = RO_GOURAUD;
1471}
1472// Sets the object render to draw a polymodel with lightmaps applied
1473void RenderObject_SetLightmaps(lightmap_object *lmobject) {
1474 ASSERT(lmobject->used);

Callers 2

SetupTerrainObjectFunction · 0.85
SetupMineObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected