qvspotlight.h

来自「Windows上的MUD客户端程序」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef  _QV_SPOT_LIGHT_
#define  _QV_SPOT_LIGHT_

#include <QvSFBool.h>
#include <QvSFColor.h>
#include <QvSFFloat.h>
#include <QvSFVec3f.h>
#include <QvSubNode.h>

class QvSpotLight : public QvNode {

    QV_NODE_HEADER(QvSpotLight);

  public:
    // Fields:
    QvSFBool	on;		// Whether light is on
    QvSFFloat	intensity;	// Source intensity (0 to 1)
    QvSFColor	color;		// RGB source color
    QvSFVec3f	location;	// Source location
    QvSFVec3f	direction;	// Primary direction of illumination
    QvSFFloat	dropOffRate;	// Rate of intensity drop-off from primary
				// direction: 0 = constant intensity,
				// 1 = sharp drop-off
    QvSFFloat	cutOffAngle;	// Angle (in radians) outside of which
				// intensity is zero, measured from
				// edge of cone to other edge
};

#endif /* _QV_SPOT_LIGHT_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?