192 inline const string&
getId()
override {
const Vector3 & getLookFrom() const
TDME2 engine entity shader parameters.
void setShaderParameter(const string ¶meterName, const ShaderParameter ¶meterValue)
Set shader parameter for given parameter name.
void setShader(const string &shaderId)
Set shader.
const ShaderParameter getShaderParameter(const string ¶meterName) const
Returns shader parameter for given parameter name, if the value does not exist, the default will be r...
@ ENTITYTYPE_IMPOSTEROBJECT3D
Imposter object 3d to be used with engine class.
Object3D * billboardObject
const Matrix4x4 & getTransformationsMatrix() const override
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 setShader(const string &id)
Set shader id.
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.
vector< Object3D * > billboardObjects
const vector< Object3D * > getBillboardObjects()
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
EntityShaderParameters shaderParameters
BoundingBox * getBoundingBox() override
void setRenderPass(RenderPass renderPass) override
Set render pass.
void setReceivesShadows(bool receivesShadows) override
Enable/disable receives shadows.
const string & getShader()
void addRotation(const Vector3 &axis, const float angle) override
Add rotation.
void update() override
Update transformations.
const string & getId() override
void setPickable(bool pickable) override
Set this object pickable.
float getDistanceShaderDistance()
Entity * getParentEntity() override
void setEffectColorMul(const Color4 &effectColorMul) override
Set effect color that will be multiplied with fragment color.
const ShaderParameter getShaderParameter(const string ¶meterName)
Returns shader parameter for given parameter name, if the value does not exist, the default will be r...
bool isPickable() override
const Vector3 & getTranslation() const override
void setShaderParameter(const string ¶meterName, const ShaderParameter ¶meterValue)
Set shader parameter for given parameter name.
float distanceShaderDistance
ImposterObject3D(const string &id, const vector< Model * > &billboardModels)
Public constructor.
const ShaderParameter getDistanceShaderParameter(const string ¶meterName)
Returns distance shader parameter for given parameter name, if the value does not exist,...
void fromTransformations(const Transformations &transformations) override
Set up this transformations from given transformations.
bool enableEarlyZRejection
const string & getDistanceShader()
const Color4 & getEffectColorMul() const override
The effect color will be multiplied with fragment color.
const Vector3 & getScale() const override
const Vector3 & getPivot() const override
void setEnableEarlyZRejection(bool enableEarlyZRejection)
Enable/disable early z rejection.
bool isEnableEarlyZRejection() const
BoundingBox * getBoundingBoxTransformed() override
void setDistanceShader(const string &id)
Set distance shader id.
void setScale(const Vector3 &scale) override
Set scale.
Object3D * getBillboardObject()
bool isContributesShadows() override
const Matrix4x4 getNodeTransformationsMatrix(const string &id)
~ImposterObject3D()
Public destructor.
EntityShaderParameters distanceShaderParameters
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 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 setDistanceShaderDistance(float distanceShaderDistance)
Set distance shader distance.
void setContributesShadows(bool contributesShadows) override
Enable/disable contributes shadows.
void setRotationAxis(const int idx, const Vector3 &axis) override
Set rotation axis.
vector< Model * > billboardModels
bool isFrustumCulling() override
bool isEnabled() override
Rotation & getRotation(const int idx) override
Get rotation at given index.
Object3D * determineBillboardObject(Camera *camera)
Get current billboard object.
void setEffectColorAdd(const Color4 &effectColorAdd) override
Set effect color that will be added to fragment color.
void setDistanceShaderParameter(const string ¶meterName, const ShaderParameter ¶meterValue)
Set distance shader parameter for given parameter name.
void setRenderer(Renderer *renderer) override
Set up renderer.
void setRotationAngle(const int idx, const float angle) override
LOD object 3D + imposter to be used with engine class.
Object 3D to be used with engine class.
void setShader(const string &id)
Set shader.
BoundingBox * getBoundingBox() override
void setRenderPass(RenderPass renderPass) override
Set render pass.
void setReceivesShadows(bool receivesShadows) override
Enable/disable receives shadows.
void setEffectColorMul(const Color4 &effectColorMul) override
Set effect color that will be multiplied with fragment color.
void setShaderParameter(const string ¶meterName, const ShaderParameter ¶meterValue)
Set shader parameter for given parameter name.
void fromTransformations(const Transformations &transformations) override
Set up this transformations from given transformations.
BoundingBox * getBoundingBoxTransformed() override
void setDistanceShader(const string &id)
Set distance shader.
void setContributesShadows(bool contributesShadows) override
Enable/disable contributes shadows.
void setEffectColorAdd(const Color4 &effectColorAdd) override
Set effect color that will be added to fragment color.
void setDistanceShaderParameter(const string ¶meterName, const ShaderParameter ¶meterValue)
Set distance shader parameter for given parameter name.
static STATIC_DLL_IMPEXT Vector3 Y_AXIS
Shader parameter model class.
Representation of a 3d model.
Axis aligned bounding box used for frustum, this is not directly connectable with physics engine.
const Vector3 & getCenter() const
const Matrix4x4 getNodeTransformationsMatrix(const string &id)
Returns transformation matrix for given node.
Vector3 & normalize()
Normalize the vector.
Vector3 clone() const
Clones the vector.
Vector3 & sub(const Vector3 &v)
Subtracts a vector.
Vector3 & setY(float y)
Set Y.