内容表

上一话题

Qt3DExtras.QForwardRenderer

下一话题

Qt3DExtras.QMetalRoughMaterial

Qt3DExtras.QGoochMaterial

QGoochMaterial provides a material that implements the Gooch shading model, popular in CAD and CAM applications. 更多

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial

概要

函数

信号

详细描述

The Gooch lighting model uses both color and brightness to help show the curvature of 3D surfaces. This is often better than models such as Phong that rely purely upon changes in brightness. In situations such as in CAD and CAM applications where photorealism is not a goal, the Gooch shading model in conjunction with some kind of silhouette edge inking is a popular solution.

The Gooch lighting model is explained fully in the original Gooch paper . The Gooch model mixes a diffuse object color with a user-provided cool color and warm color to produce the end points of a color ramp that is used to shade the object based upon the cosine of the angle between the vector from the fragment to the light source and the fragment’s normal vector. Optionally, a specular highlight can be added on top. The relative contributions to the cool and warm colors by the diffuse color are controlled by the alpha and beta properties respecitvely.

This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.

class PySide2.Qt3DExtras.Qt3DExtras. QGoochMaterial ( [ parent=None ] )
param parent

QNode

构造新 QGoochMaterial instance with parent object parent .

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. alpha ( )
返回类型

float

另请参阅

setAlpha()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. alphaChanged ( alpha )
参数

alpha float

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. beta ( )
返回类型

float

另请参阅

setBeta()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. betaChanged ( beta )
参数

beta float

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. cool ( )
返回类型

QColor

另请参阅

setCool()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. coolChanged ( cool )
参数

cool QColor

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. diffuse ( )
返回类型

QColor

另请参阅

setDiffuse()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. diffuseChanged ( diffuse )
参数

diffuse QColor

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. setAlpha ( alpha )
参数

alpha float

另请参阅

alpha()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. setBeta ( beta )
参数

beta float

另请参阅

beta()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. setCool ( cool )
参数

cool QColor

另请参阅

cool()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. setDiffuse ( diffuse )
参数

diffuse QColor

另请参阅

diffuse()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. setShininess ( shininess )
参数

shininess float

另请参阅

shininess()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. setSpecular ( specular )
参数

specular QColor

另请参阅

specular()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. setWarm ( warm )
参数

warm QColor

另请参阅

warm()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. shininess ( )
返回类型

float

另请参阅

setShininess()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. shininessChanged ( shininess )
参数

shininess float

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. specular ( )
返回类型

QColor

另请参阅

setSpecular()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. specularChanged ( specular )
参数

specular QColor

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. warm ( )
返回类型

QColor

另请参阅

setWarm()

PySide2.Qt3DExtras.Qt3DExtras.QGoochMaterial. warmChanged ( warm )
参数

warm QColor