Arc compatibility

This commit is contained in:
Anuken
2021-09-17 11:46:52 -04:00
parent 84935e1bb0
commit 58a21c3cc7
4 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ void main(){
vec3 lightReflect = normalize(reflect(a_normal, u_lightdir)); vec3 lightReflect = normalize(reflect(a_normal, u_lightdir));
float specularFactor = dot(u_camdir, lightReflect); float specularFactor = dot(u_camdir, lightReflect);
if(specularFactor > 0.0){ if(specularFactor > 0.0){
specular = vec3(1.0 * pow(specularFactor, 32.0)) * (1.0-a_color.a); //specular power = 32 specular = vec3(1.0 * pow(specularFactor, 64.0)) * (1.0-a_color.a); //specular power = 32
} }
vec3 norc = (u_ambientColor + specular) * (diffuse + vec3(clamp((dot(a_normal, u_lightdir) + 1.0) / 2.0, 0.0, 1.0))); vec3 norc = (u_ambientColor + specular) * (diffuse + vec3(clamp((dot(a_normal, u_lightdir) + 1.0) / 2.0, 0.0, 1.0)));

View File

@@ -277,7 +277,7 @@ public class Renderer implements ApplicationListener{
} }
if(bloom != null){ if(bloom != null){
bloom.resize(graphics.getWidth() / 4, graphics.getHeight() / 4); bloom.resize(graphics.getWidth(), graphics.getHeight());
Draw.draw(Layer.bullet - 0.02f, bloom::capture); Draw.draw(Layer.bullet - 0.02f, bloom::capture);
Draw.draw(Layer.effect + 0.02f, bloom::render); Draw.draw(Layer.effect + 0.02f, bloom::render);
} }

View File

@@ -124,7 +124,7 @@ public class PlanetRenderer implements Disposable{
} }
public void beginBloom(){ public void beginBloom(){
bloom.resize(Core.graphics.getWidth() / 4, Core.graphics.getHeight() / 4); bloom.resize(Core.graphics.getWidth(), Core.graphics.getHeight());
bloom.capture(); bloom.capture();
} }

View File

@@ -11,4 +11,4 @@ android.useAndroidX=true
#used for slow jitpack builds; TODO see if this actually works #used for slow jitpack builds; TODO see if this actually works
http.socketTimeout=80000 http.socketTimeout=80000
http.connectionTimeout=80000 http.connectionTimeout=80000
archash=7a4fbbcaa8350c7d6e04a59f1eb50b04947c2280 archash=e982971b17f48c13f3a18c344b8080b7498cccf6