#include <material.h>
Definition at line 215 of file material.h.
◆ SILK_SCREEN_NORMAL() [1/2]
SILK_SCREEN_NORMAL::SILK_SCREEN_NORMAL |
( |
| ) |
|
|
inline |
◆ SILK_SCREEN_NORMAL() [2/2]
SILK_SCREEN_NORMAL::SILK_SCREEN_NORMAL |
( |
float |
aScale | ) |
|
◆ ~SILK_SCREEN_NORMAL()
virtual SILK_SCREEN_NORMAL::~SILK_SCREEN_NORMAL |
( |
| ) |
|
|
inlinevirtual |
◆ Generate()
SFVEC3F SILK_SCREEN_NORMAL::Generate |
( |
const RAY & |
aRay, |
|
|
const HITINFO & |
aHitInfo |
|
) |
| const |
|
overridevirtual |
Generate a 3D vector based on the ray and hit information depending on the implementation.
- Parameters
-
aRay | the camera ray that hits the object |
aHitInfo | the hit information |
- Returns
- the result of the procedural
Implements MATERIAL_GENERATOR.
Definition at line 308 of file material.cpp.
312 const float noise1 =
s_perlinNoise.
noise( hitPos.x * 2.0f, hitPos.y * 2.0f, hitPos.z );
314 const float noise2 =
s_perlinNoise.
noise( hitPos.x * 0.6f, hitPos.y * 0.6f, hitPos.z );
320 t = t * tt * tt * 100.0f;
SFVEC3F m_HitPoint
(12) hit position
static PerlinNoise s_perlinNoise
float noise(float x, float y, float z) const
References HITINFO::m_HitPoint, m_scale, PerlinNoise::noise(), and s_perlinNoise.
◆ m_scale
float SILK_SCREEN_NORMAL::m_scale |
|
private |
The documentation for this class was generated from the following files: