Small clean up

This commit is contained in:
Malin E
2023-04-13 11:27:11 +02:00
parent 6d8f7b2fbd
commit 71caf31f02
7 changed files with 12 additions and 17 deletions

View File

@@ -28,8 +28,7 @@ local animationLoop = {
ModelScale = 3E7,
LightSources = {
sun.LightSource
},
PerformShading = true
}
},
GUI = {
Name = "Animated Model example (LoopFromStart)",
@@ -56,8 +55,7 @@ local animationLoopInf = {
ModelScale = 3E7,
LightSources = {
sun.LightSource
},
PerformShading = true
}
},
GUI = {
Name = "Animated Model example (LoopInfinitely)",
@@ -84,8 +82,7 @@ local animationOnce = {
ModelScale = 3E7,
LightSources = {
sun.LightSource
},
PerformShading = true
}
},
GUI = {
Name = "Animated Model example (Once)",
@@ -112,8 +109,7 @@ local animationBounceInf = {
ModelScale = 3E7,
LightSources = {
sun.LightSource
},
PerformShading = true
}
},
GUI = {
Name = "Animated Model example (BounceInfinitely)",
@@ -140,8 +136,7 @@ local animationBounce = {
ModelScale = 3E7,
LightSources = {
sun.LightSource
},
PerformShading = true
}
},
GUI = {
Name = "Animated Model example (BounceFromStart)",

View File

@@ -35,8 +35,7 @@ local obj = {
ModelScale = 1000,
LightSources = {
sun.LightSource
},
PerformShading = true
}
},
InteractionSphere = 900,
ApproachFactor = 50.0,

View File

@@ -47,6 +47,7 @@ uniform sampler2D texture_specular;
uniform vec3 color_diffuse;
uniform vec3 color_specular;
uniform float opacity = 1.0;
uniform int nLightSources;
uniform vec3 lightDirectionsViewSpace[8];
@@ -63,7 +64,7 @@ Fragment getFragment() {
frag.gPosition = vs_positionCameraSpace;
frag.gNormal = vec4(vs_normalViewSpace, 0.0);
frag.disableLDR2HDR = true;
frag.color.a = 1.0;
frag.color.a = opacity;
if (performManualDepthTest) {
// gl_FragCoord.x goes from 0 to resolution.x and gl_FragCoord.y goes from 0 to

View File

@@ -215,7 +215,7 @@ end
asset.meta = {
Name = "Dawn",
Version = "1.0",
Version = "2.0",
Description = "Dawn spacecraft and trail",
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",

View File

@@ -153,7 +153,7 @@ asset.export(VestaTrail)
asset.meta = {
Name = "Vesta",
Version = "1.0",
Version = "1.1",
Description = "Vesta model projection and trail",
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",

View File

@@ -156,7 +156,7 @@ asset.export(issPosition)
asset.meta = {
Name = "ISS",
Version = "1.1",
Version = "2.0",
Description = [[Model and Trail for ISS. Model from NASA 3D models, trail from
Celestrak.]],
Author = "OpenSpace Team",

View File

@@ -44,10 +44,10 @@ uniform bool has_color_specular;
uniform sampler2D texture_diffuse;
uniform sampler2D texture_normal;
uniform sampler2D texture_specular;
uniform float opacity = 1.0;
uniform vec4 color_diffuse;
uniform vec4 color_specular;
uniform float opacity = 1.0;
uniform int nLightSources;
uniform vec3 lightDirectionsViewSpace[8];