100 inline void dispose()
override;
137 inline const string&
getId()
override {
static constexpr int RENDERPASS_ALL
@ ENTITYTYPE_ENVIRONMENTMAPPING
Environment mapping entity.
const Matrix4x4 & getTransformationsMatrix() const override
BoundingBox boundingBoxTransformed
const Color4 & getEffectColorAdd() const override
The effect color will be added to fragment color.
RenderPass getRenderPass() const override
void dispose() override
Dispose this object 3d.
void setTranslation(const Vector3 &translation) override
Set translation.
void setParentEntity(Entity *entity) override
Set parent entity, needs to be called before adding to engine.
void removeRotation(const int idx) override
Remove rotation.
EnvironmentMapping(const string &id, int width, int height, BoundingBox boundingBox)
Public constructor.
void setPivot(const Vector3 &pivot) override
Set pivot.
const int getRotationCount() const override
const Quaternion & getRotationsQuaternion() const override
void initialize() override
Initiates this object 3d.
bool isReceivesShadows() override
BoundingBox * getBoundingBox() override
void setRenderPass(RenderPass renderPass) override
Set render pass.
int64_t getTimeRenderUpdateFrequency()
void setReceivesShadows(bool receivesShadows) override
Enable/disable receives shadows.
void addRotation(const Vector3 &axis, const float angle) override
Add rotation.
void update() override
Update transformations.
void setRenderPassMask(int32_t renderPassMask)
Set up render pass mask.
const string & getId() override
void setPickable(bool pickable) override
Set this object pickable.
int32_t getRenderPassMask()
Entity * getParentEntity() override
void setEffectColorMul(const Color4 &effectColorMul) override
Set effect color that will be multiplied with fragment color.
bool isPickable() override
const Vector3 & getTranslation() const override
EnvironmentMappingRenderer * environmentMappingRenderer
void fromTransformations(const Transformations &transformations) override
Set up this transformations from given transformations.
void render()
Render environment map.
const Color4 & getEffectColorMul() const override
The effect color will be multiplied with fragment color.
const Vector3 & getScale() const override
const Vector3 & getPivot() const override
BoundingBox * getBoundingBoxTransformed() override
int32_t getCubeMapTextureId()
void setScale(const Vector3 &scale) override
Set scale.
bool isContributesShadows() override
void applyParentTransformations(const Transformations &parentTransformations) override
Apply parent transformations.
const float getRotationAngle(const int idx) const override
const Transformations & getTransformations() const override
void setFrustumCulling(bool frustumCulling) override
Set frustum culling.
void setTimeRenderUpdateFrequency(int64_t frequency)
Set up render update time frequency.
int64_t timeRenderUpdateFrequency
void setEngine(Engine *engine) override
Set up engine.
void setEnabled(bool enabled) override
Enable/disable rendering.
EntityType getEntityType() override
const Vector3 & getRotationAxis(const int idx) const override
void setContributesShadows(bool contributesShadows) override
Enable/disable contributes shadows.
void setRotationAxis(const int idx, const Vector3 &axis) override
Set rotation axis.
bool isFrustumCulling() override
bool isEnabled() override
Rotation & getRotation(const int idx) override
Get rotation at given index.
void setEffectColorAdd(const Color4 &effectColorAdd) override
Set effect color that will be added to fragment color.
void setRenderer(Renderer *renderer) override
Set up renderer.
void setRotationAngle(const int idx, const float angle) override
Representation of a 3d model.
Axis aligned bounding box used for frustum, this is not directly connectable with physics engine.
void setRenderPassMask(int32_t renderPassMask)
Set up render pass mask.
int32_t getCubeMapTextureId()
void setTimeRenderUpdateFrequency(int64_t frequency)
Set up render update time frequency.
void render(const Vector3 &position)
Renders given objects in to environment cube map.
void getTranslation(Vector3 &translation) const
Get translation.