logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

s3d_push_material - push material

Author

SimonWunderlich
           Author of s3d

s3d                                                                                         S3D_PUSH_MATERIAL(3)

Description

       Pushes a material for an object. you will have to count them yourself too, as polygons will ask for the
       material index number. The material properties are given in rgb (red/green/blue) color codes, in float.
       0.0 is the minimum, 1.0 is the maximum a color value can be. The specular color is the color which is
       directly reflected from the light source. The diffuse color is the color which can be seen in the bright
       side of the object, and the ambience color is the color of the shadow side of the object.

Name

       s3d_push_material - push material

Synopsis

#include<s3d.h>ints3d_push_material(intobject,floatamb_r,floatamb_g,floatamb_b,floatspec_r,floatspec_g,floatspec_b,floatdiff_r,floatdiff_g,floatdiff_b);

See Also