Add Phong lighting (WIP)
This commit is contained in:
@@ -28,6 +28,7 @@ namespace Nz
|
||||
ViewerInstance(ViewerInstance&&) noexcept = default;
|
||||
~ViewerInstance() = default;
|
||||
|
||||
inline const Vector3f& GetEyePosition() const;
|
||||
inline const Matrix4f& GetInvProjectionMatrix() const;
|
||||
inline const Matrix4f& GetInvViewMatrix() const;
|
||||
inline const Matrix4f& GetInvViewProjMatrix() const;
|
||||
@@ -39,6 +40,7 @@ namespace Nz
|
||||
inline const std::shared_ptr<AbstractBuffer>& GetViewerBuffer() const;
|
||||
|
||||
void UpdateBuffers(UploadPool& uploadPool, CommandBufferBuilder& builder);
|
||||
inline void UpdateEyePosition(const Vector3f& eyePosition);
|
||||
inline void UpdateProjectionMatrix(const Matrix4f& projectionMatrix);
|
||||
inline void UpdateProjectionMatrix(const Matrix4f& projectionMatrix, const Matrix4f& invProjectionMatrix);
|
||||
inline void UpdateProjViewMatrices(const Matrix4f& projectionMatrix, const Matrix4f& viewMatrix);
|
||||
@@ -60,6 +62,7 @@ namespace Nz
|
||||
Matrix4f m_viewProjMatrix;
|
||||
Matrix4f m_viewMatrix;
|
||||
Vector2f m_targetSize;
|
||||
Vector3f m_eyePosition;
|
||||
bool m_dataInvalided;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user