-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'indiesoftby:main' into blockbuster
- Loading branch information
Showing
23 changed files
with
244 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Java ♨️ | ||
uses: actions/setup-java@v2 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "adopt" | ||
java-version: "11" | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
||
- name: Build 🔧 | ||
env: | ||
|
@@ -26,11 +26,13 @@ jobs: | |
mkdir -p build/bundle | ||
# Download the latest bob.jar | ||
BOB_SHA1=${DEFOLD_BOB_SHA1:-$(curl -s 'https://d.defold.com/stable/info.json' | jq -r .sha1)} | ||
wget --progress=dot:mega -O build/bob.jar "https://d.defold.com/archive/${BOB_SHA1}/bob/bob.jar" | ||
java -jar build/bob.jar --version | ||
BOB_LOCAL_SHA1=$((java -jar build/bundle/bob.jar --version | cut -d' ' -f6) || true) | ||
if [ "${BOB_LOCAL_SHA1}" != "${BOB_SHA1}" ]; then wget --progress=dot:mega -O build/bundle/bob.jar "https://d.defold.com/archive/${BOB_SHA1}/bob/bob.jar"; fi | ||
java -jar build/bundle/bob.jar --version | ||
java -jar build/bob.jar --email [email protected] --auth 123 --texture-compression true --bundle-output build/bundle/js-web --platform js-web --archive --variant release resolve build bundle | ||
java -jar build/bundle/bob.jar --email [email protected] --auth 123 --texture-compression true --bundle-output build/bundle/js-web --platform js-web --archive --variant release resolve build bundle | ||
(cd build/bundle && cp -r js-web/* public) | ||
- name: Deploy to Pages 🚀 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// WebGL 1.0 / OpenGL ES 2.0 don't have "transpose" and "inverse" functions. | ||
// + some versions aren't able to cast mat4 to mat3. | ||
// | ||
#if __VERSION__ < 300 | ||
mat3 mat33_transpose(mat3 m) { | ||
return mat3(m[0][0], m[1][0], m[2][0], | ||
m[0][1], m[1][1], m[2][1], | ||
m[0][2], m[1][2], m[2][2]); | ||
} | ||
|
||
mat3 mat43_inverse(mat4 m) { | ||
float a00 = m[0][0], a01 = m[0][1], a02 = m[0][2]; | ||
float a10 = m[1][0], a11 = m[1][1], a12 = m[1][2]; | ||
float a20 = m[2][0], a21 = m[2][1], a22 = m[2][2]; | ||
|
||
float b01 = a22 * a11 - a12 * a21; | ||
float b11 = -a22 * a10 + a12 * a20; | ||
float b21 = a21 * a10 - a11 * a20; | ||
|
||
float det = a00 * b01 + a01 * b11 + a02 * b21; | ||
|
||
return mat3(b01, (-a22 * a01 + a02 * a21), (a12 * a01 - a02 * a11), | ||
b11, (a22 * a00 - a02 * a20), (-a12 * a00 + a02 * a10), | ||
b21, (-a21 * a00 + a01 * a20), (a11 * a00 - a01 * a10)) / det; | ||
} | ||
#else | ||
mat3 mat33_transpose(mat3 m) { | ||
return transpose(m); | ||
} | ||
|
||
mat3 mat43_inverse(mat4 m) { | ||
return inverse(mat3(m)); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.