Compare commits
15 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ab89daa5f | |||
| 657e091e7f | |||
| b501847f57 | |||
| 83dada40b6 | |||
| 5cc9b3280a | |||
| a8a67685ab | |||
| 552d541ee9 | |||
| 8369f40ee0 | |||
| 2b7bf6005e | |||
| 91d485e0cc | |||
| 157c1bd8ba | |||
| 54082ee1bc | |||
| 62e28624eb | |||
| 27c4cebb59 | |||
| a1a6e0471c |
6 changed files with 36 additions and 3 deletions
26
.forgejo/workflows/build.yml
Normal file
26
.forgejo/workflows/build.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Build Go (Linux + Windows)
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: git.rufous-trench.ts.net/crizomb/forgejo-action-goraylib:deb13-node20-go1.24
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build binaries
|
||||
run: |
|
||||
cd src
|
||||
mkdir -p builds_artifact
|
||||
GOOS=linux GOARCH=amd64 go build -o builds_artifact/raymarchgo-linux-amd64
|
||||
GOOS=windows GOARCH=amd64 go build -o builds_artifact/raymarchgo-windows-amd64.exe
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: DebugBuilds
|
||||
path: src/builds_artifact
|
||||
|
|
@ -1,2 +1,7 @@
|
|||
Simple cpu ray-marching in go
|
||||
Focus on Lisiblity & Features
|
||||
|
||||
<video src="https://git.rufous-trench.ts.net/Crizomb/Medias/raw/branch/main/rayMarchingGo.mp4" controls></video>
|
||||
|
||||
also used to test CI/CD things currently
|
||||
inc=2
|
||||
|
|
|
|||
BIN
src/app-linux-amd64
Executable file
BIN
src/app-linux-amd64
Executable file
Binary file not shown.
|
|
@ -1,4 +1,4 @@
|
|||
module test_raylib
|
||||
module raymarching_go
|
||||
|
||||
go 1.24.7
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import (
|
|||
|
||||
const WIDTH = 200
|
||||
const HEIGHT = 200
|
||||
const TEXTURE_SCALE = 2
|
||||
const TEXTURE_SCALE = 4
|
||||
|
||||
const MAX_DIST = 500.0
|
||||
const MAX_STEP = 100
|
||||
|
|
@ -43,9 +43,11 @@ func init() {
|
|||
func update(t float64) {
|
||||
|
||||
sphereMat := RED_MAT
|
||||
sphereMat2 := GREEN_MAT
|
||||
sphereMat.specularFac = 0.5
|
||||
sphereMat2.specularFac = 0.5
|
||||
sphere := TranslatedSDF{Sphere{10, sphereMat}, Vector3{-15, 100, 10}}
|
||||
sphere2 := TranslatedSDF{Sphere{10, sphereMat}, Vector3{15, 100, 10}}
|
||||
sphere2 := TranslatedSDF{Sphere{10, sphereMat2}, Vector3{15, 100, 10}}
|
||||
|
||||
// boxMat := BLUE_MAT
|
||||
// box := TranslatedSDF{Box{Vector3{10, 2, 10}, boxMat}, Vector3{0, 100, 10}}
|
||||
|
|
|
|||
BIN
src/raymarching_go
Executable file
BIN
src/raymarching_go
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue