Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: chrome/browser/android/vr_shell/vr_shell_renderer.h

Issue 2795793002: Implementation of elbow model for the controller position and rotation. (Closed)
Patch Set: nit Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/vr_shell_renderer.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_renderer.h b/chrome/browser/android/vr_shell/vr_shell_renderer.h
index 0b1c5aaf7b495095288ceaceebf4367cf4bad02b..7a046aba28ba5968bae2917553f0a8fd42b3ad2f 100644
--- a/chrome/browser/android/vr_shell/vr_shell_renderer.h
+++ b/chrome/browser/android/vr_shell/vr_shell_renderer.h
@@ -178,7 +178,7 @@ class LaserRenderer : public BaseQuadRenderer {
LaserRenderer();
~LaserRenderer() override;
- void Draw(const vr::Mat4f& view_proj_matrix);
+ void Draw(float opacity, const vr::Mat4f& view_proj_matrix);
private:
GLuint model_view_proj_matrix_handle_;
@@ -187,6 +187,7 @@ class LaserRenderer : public BaseQuadRenderer {
GLuint color_handle_;
GLuint fade_point_handle_;
GLuint fade_end_handle_;
+ GLuint opacity_handle_;
DISALLOW_COPY_AND_ASSIGN(LaserRenderer);
};
@@ -197,12 +198,15 @@ class ControllerRenderer : public BaseRenderer {
~ControllerRenderer() override;
void SetUp(std::unique_ptr<VrControllerModel> model);
- void Draw(VrControllerModel::State state, const vr::Mat4f& view_proj_matrix);
+ void Draw(VrControllerModel::State state,
+ float opacity,
+ const vr::Mat4f& view_proj_matrix);
bool IsSetUp() const { return setup_; }
private:
GLuint model_view_proj_matrix_handle_;
GLuint tex_uniform_handle_;
+ GLuint opacity_handle_;
GLuint indices_buffer_ = 0;
GLuint vertex_buffer_ = 0;
GLint position_components_ = 0;
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | chrome/browser/android/vr_shell/vr_shell_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698