Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Slotterleet committed Dec 9, 2023
2 parents b49251b + d20762f commit 406a5c6
Show file tree
Hide file tree
Showing 13 changed files with 513 additions and 7 deletions.
3 changes: 2 additions & 1 deletion core/res/shaders/los.frag
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ vec3 hsv2rgb(vec3 c){

void main(){
vec2 coords = vec2(v_texCoords.x * u_resolution.x + u_campos.x, v_texCoords.y * u_resolution.y + u_campos.y);
float random = rand(ceil(vec2(coords.x, coords.y) / 8. * u_cameraScale));

vec4 c = texture2D(u_texture, v_texCoords);

vec3 hsv = rgb2hsv(c.rgb);
hsv.r += sin(u_time + rand(vec2(coords.x / u_cameraScale, coords.y / u_cameraScale)) * 100.0) * 0.08 - 0.04;
hsv.r += sin(u_time + random) * 0.16 - 0.04;
c = vec4(hsv2rgb(hsv), c.a);

gl_FragColor = c;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified core/res/sprites/items/aluminium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified core/res/sprites/items/cuberium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified core/res/sprites/items/luminium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified core/res/sprites/items/nickel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/res/sprites/items/sulphur.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion core/src/fos/content/FOSItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public static void load(){
brass = new Item("brass", Color.valueOf("b57050")){{
cost = 2f;
}};
sulphur = new Item("sulphur", Color.valueOf("000000" /*TODO*/));
sulphur = new Item("sulphur", Color.valueOf("f0b454")){{
flammability = 0.6f;
cost = 0.5f;
}};
cuberium = new Item("cuberium", Color.valueOf("855992")){{
cost = 3f;
}};
Expand Down
3 changes: 3 additions & 0 deletions core/src/fos/core/FOSMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import fos.content.*;
import fos.controllers.CapsulesController;
import fos.gen.FosEntityMapping;
import fos.graphics.FOSOreRenderer;
import fos.graphics.FOSShaders;
import fos.net.FOSPackets;
import fos.ui.DamageDisplay;
Expand Down Expand Up @@ -83,6 +84,8 @@ public FOSMod() {

@Override
public void loadContent() {
FOSVars.oreRenderer = new FOSOreRenderer();

SplashTexts.load();

FOSShaders.init();
Expand Down
4 changes: 4 additions & 0 deletions core/src/fos/core/FOSVars.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import fos.content.FOSFluids;
import fos.controllers.CapsulesController;
import fos.files.InternalFileTree;
import fos.graphics.FOSOreRenderer;
import fos.ui.*;
import fos.ui.menus.FOSMenuRenderer;
import mindustry.ai.Pathfinder;
Expand Down Expand Up @@ -51,6 +52,9 @@ public class FOSVars {
/** Main menu renderer **/
public static FOSMenuRenderer menuRenderer = new FOSMenuRenderer();

/** Ore cache renderer **/
public static FOSOreRenderer oreRenderer;

/** Mod reference **/
public static Mods.LoadedMod mod;

Expand Down
Loading

0 comments on commit 406a5c6

Please sign in to comment.