4#include "../Objects/Cube.h"
5#include "../Materials/DepthMaterial.h"
6#include "../Materials/LightMaterial.h"
7#include "../Math/FunctionGenerator.h"
19 scene->AddObject(
cube.GetObject());
21 cube.GetObject()->SetMaterial(&
dMat);
24 void FadeIn(
float stepRatio)
override {}
33 cube.GetObject()->ResetVertices();
35 cube.GetObject()->GetTransform()->SetRotation(rotation);
36 cube.GetObject()->GetTransform()->SetScale(
Vector3D(sx, sx, sx));
37 cube.GetObject()->GetTransform()->SetPosition(
Vector3D(125.0f, 75.0f, 600.0f));
39 cube.GetObject()->UpdateTransform();
FunctionGenerator fGenScale
FunctionGenerator fGenRotation
void FadeIn(float stepRatio) override
void FadeOut(float stepRatio) override
void Update(float ratio) override
Maps depth along a specified axis to an RGB color using a gradient.
@ Z
Depth along the Z-axis.
Encapsulates a 3D rotation using Euler angles and a specific order of application.
A class to generate various waveform functions with customizable parameters.
float Update()
Updates and calculates the next value of the waveform.
A material class that incorporates multiple light sources for rendering.
A mathematical construct representing a rotation in 3D space.
Handles 3D rotations and conversions between various rotation representations.
Quaternion GetQuaternion()
Gets the quaternion representation of the rotation.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.
const EulerOrder EulerOrderXZYS
Order: X → Z → Y, static frame.