8 #include <rendercomponent.h> 
    9 #include <nap/resourceptr.h> 
   11 #include <materialinstance.h> 
   12 #include <renderablemesh.h> 
   13 #include <transformcomponent.h> 
   18     class RenderSkyBoxComponentInstance;
 
   37         void getDependentComponents(std::vector<rtti::TypeInfo>& components) 
const override;
 
   41         float mOpacity = 1.0f;                          
 
   85         void setColor(
const glm::vec3& color)                   { mColorUniform->setValue(color); }
 
   90         const glm::vec3& 
getColor()
 const                       { 
return mColorUniform->getValue(); }
 
   96         void setOpacity(
float opacity)                          { mAlphaUniform->setValue(opacity); }
 
  101         float getOpacity()
 const                                { 
return mAlphaUniform->getValue(); }
 
  107         void onDraw(
IRenderTarget& renderTarget, VkCommandBuffer commandBuffer, 
const glm::mat4& viewMatrix, 
const glm::mat4& projectionMatrix) 
override;
 
  
Definition: rendercomponent.h:46
Definition: irendertarget.h:21
Definition: texture.h:302
void setColor(const glm::vec3 &color)
Definition: renderskyboxcomponent.h:85
EBlendMode
Definition: materialcommon.h:18
Definition: objectptr.h:150
float getOpacity() const
Definition: renderskyboxcomponent.h:101
Definition: errorstate.h:19
@ Opaque
Regular opaque, similar to (One, Zero) blend.
Definition: renderskyboxcomponent.h:55
Definition: renderservice.h:198
Definition: renderskyboxcomponent.h:29
ResourcePtr< TextureCube > mCubeTexture
Definition: renderskyboxcomponent.h:39
const glm::vec3 & getColor() const
Definition: renderskyboxcomponent.h:90
Definition: rendercomponent.h:29
Definition: component.h:151
Definition: renderablemesh.h:22
Definition: materialinstance.h:297
Definition: templateapp.h:17
Definition: samplerinstance.h:193
void setOpacity(float opacity)
Definition: renderskyboxcomponent.h:96
const TextureCube & getTexture() const
Definition: renderskyboxcomponent.h:79
Definition: materialinstance.h:68