Skip to content

Commit

Permalink
Preload shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumlamm committed Apr 16, 2024
1 parent 7209c15 commit 7777140
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/export.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
on:
on:
workflow_dispatch:
push:
branches:
- main

jobs:
export:
Expand All @@ -11,7 +9,7 @@ jobs:
steps:
- name: checkout
uses: actions/[email protected]

- name: export game
id: export
uses: firebelley/[email protected]
Expand All @@ -21,39 +19,39 @@ jobs:
relative_project_path: ./src
archive_output: true
cache: true

- uses: actions/upload-artifact@v4
name: Upload raw
with:
name: Raw Outputs
path: ${{ steps.export.outputs.build_directory }}/*
if-no-files-found: error

- uses: actions/upload-artifact@v4
name: Upload archives
with:
name: Archives
path: ${{ steps.export.outputs.archive_directory }}/*
if-no-files-found: error

deploy-web:
name: Deploy Web Demo
environment: isiko404.dev Deployment
runs-on: ubuntu-latest
needs: export
steps:

- uses: actions/download-artifact@v4
with:
name: Raw Outputs

- name: Display structure of downloaded files
run: ls -R
- name: Display structure of probably deployable files
run: ls -al ./Web
- name: Display structure of Deployable files
run: ls -al ${{ vars.BUILD_DIR_WEB }}

- name: Deploy web-demo
uses: easingthemes/ssh-deploy@main
with:
Expand All @@ -73,14 +71,14 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: Archives

- name: Display structure of downloaded files
run: ls -R
- name: Display structure of probably deployable files
run: ls -al ./*
- name: Display structure of Deployable files
run: ls -al ${{ vars.BUILD_DIR_DOWNLOADS }}

- name: Deploy web-demo
uses: easingthemes/ssh-deploy@main
with:
Expand Down
6 changes: 6 additions & 0 deletions src/scripts/title-screen.gd
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
extends Control

func _ready() -> void:
ResourceLoader.load_threaded_request("res://shaders/hit-indicator.gdshader")
ResourceLoader.load_threaded_request("res://shaders/hp-bar.gdshader")
ResourceLoader.load_threaded_request("res://shaders/pentagram.gdshader")
ResourceLoader.load_threaded_request("res://shaders/shield.gdshader")

func on_start_game_button_pressed() -> void:
get_tree().change_scene_to_file('res://scenes/world.tscn')

Expand Down
4 changes: 0 additions & 4 deletions src/shaders/pentagram.gdshader
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ const float time_mult = 1.5;
const float edge_gradient_mult = 2.0;
const float min_width = 0.25;

void vertex() {
// Called for every vertex the material is visible on.
}

void fragment() {
float d_mid = abs(UV.y - 0.5) * 2.0;
float y_offset = 0.25;
Expand Down

0 comments on commit 7777140

Please sign in to comment.