material.h
来自「file code.zip are used to implement ray 」· C头文件 代码 · 共 28 行
H
28 行
#ifndef _MATERIAL_#define _MATERIAL_#include "common.h"//@@@@@@@@@@@@@@@@@ Material class @@@@@@@@@@@@@@class Material{public: Material() { setDefault(); } Color3 ambient, diffuse, specular, emissive; int numParams; // for textures float params[10]; // for textures int textureType; // 0 for none, neg for solids, pos for images float reflectivity, transparency, speedOfLight; float specularFraction, specularExponent, surfaceRoughness; float nudgeValue; void setDefault(); void set(Material m);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?