⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 material.h

📁 file code.zip are used to implement ray tracing technology.
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -