Skip to content

Commit

Permalink
Change attribute to in
Browse files Browse the repository at this point in the history
  • Loading branch information
angeluriot committed Oct 19, 2021
1 parent 4623225 commit 5dbef55
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions imgui.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Window][InvisibleWindow]
Pos=0,0
Size=1920,1080
Size=1440,810
Collapsed=0

[Window][Menu]
Expand Down Expand Up @@ -34,5 +34,5 @@ Size=273,734
Collapsed=0

[Docking][Data]
DockSpace ID=0xF442860A Window=0xD8117908 Pos=0,0 Size=1920,1080 CentralNode=1 Selected=0x18B8C0DE
DockSpace ID=0xF442860A Window=0xD8117908 Pos=0,0 Size=1440,810 CentralNode=1 Selected=0x18B8C0DE

6 changes: 3 additions & 3 deletions libraries/Dimension3D/sources/opengl/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ namespace dim
"#version 430\n"
"precision mediump float;\n"
"\n"
"attribute vec3 a_position;\n"
"attribute vec3 a_normal;\n"
"attribute vec2 a_texcoord;\n"
"in vec3 a_position;\n"
"in vec3 a_normal;\n"
"in vec2 a_texcoord;\n"
"\n"
"out vec3 v_position;\n"
"out vec3 v_normal;\n"
Expand Down
4 changes: 2 additions & 2 deletions shaders/blur.vert
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#version 430
precision mediump float;

attribute vec3 a_position;
attribute vec2 a_texcoord;
in vec3 a_position;
in vec2 a_texcoord;

out vec2 v_blur_texcoord[17];

Expand Down
4 changes: 2 additions & 2 deletions shaders/galaxy.vert
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#version 430
precision mediump float;

attribute vec4 a_position;
attribute vec4 a_speed;
in vec4 a_position;
in vec4 a_speed;

out float v_brightness;

Expand Down
4 changes: 2 additions & 2 deletions shaders/post.vert
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#version 430
precision mediump float;

attribute vec3 a_position;
attribute vec2 a_texcoord;
in vec3 a_position;
in vec2 a_texcoord;

out vec2 v_texcoord;

Expand Down
2 changes: 1 addition & 1 deletion sources/Computer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dim::Vector3 Computer::random_sphere()

void Computer::create_galaxy(int i)
{
positions[i].set_norm(pow(positions[i].get_norm() / (Simulator::galaxy_diameter / 2.f), 5) * (Simulator::galaxy_diameter / 2.f));
positions[i].set_norm(static_cast<float>(pow(positions[i].get_norm() / (Simulator::galaxy_diameter / 2.f), 5)) * (Simulator::galaxy_diameter / 2.f));
positions[i].y *= Simulator::galaxy_thickness / Simulator::galaxy_diameter;
speeds[i] = dim::Vector4(dim::normalize(dim::Vector3(positions[i]) ^ dim::Vector3(0.f, 1.f, 0.f)) * Simulator::stars_speed, 0.f);
}
Expand Down

0 comments on commit 5dbef55

Please sign in to comment.