-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
146 additions
and
69 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/sky_seamless_texture_5904.jpg-5347084fd9ca296efb07adce2272c008.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://assets/sky_seamless_texture_5904.jpg" | ||
dest_files=[ "res://.import/sky_seamless_texture_5904.jpg-5347084fd9ca296efb07adce2272c008.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
process/normal_map_invert_y=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[gd_resource type="Shader" format=2] | ||
|
||
[resource] | ||
code = "shader_type canvas_item; | ||
code = "shader_type spatial; | ||
|
||
void fragment(){ | ||
void vertex(){ | ||
COLOR = vec4(0.4, 0.6, 0.9, 1.0); | ||
}" |
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,45 @@ | ||
using Godot; | ||
using System; | ||
|
||
class RaySelector : Label { | ||
|
||
RayCast raycast = new RayCast(); | ||
Camera? camera; | ||
|
||
// Called when the node enters the scene tree for the first time. | ||
public override void _Ready() { | ||
this.Text = "Placeholder"; | ||
AddChild(raycast); | ||
|
||
camera = GetCamera(); | ||
} | ||
|
||
private Camera GetCamera(){ | ||
return GetNode<Camera>("../../Gimbal/Camera"); | ||
} | ||
|
||
public override void _Input(InputEvent @event) { | ||
} | ||
|
||
public override void _PhysicsProcess(float delta) { | ||
// this.Text = ("Mouse speed: %s" % MouseSpeed.get_instant_mouse_speed()); | ||
camera = GetCamera(); | ||
|
||
if(raycast.IsColliding()) | ||
GD.Print(raycast.GetCollider()); | ||
|
||
float ray_length = 100f; | ||
|
||
var fromPos = camera!.ProjectRayOrigin(GetViewport().GetMousePosition()); | ||
var toPos = camera.ProjectRayNormal(GetViewport().GetMousePosition()) * ray_length; | ||
GD.Print(GetViewport().GetMousePosition()); | ||
|
||
raycast.Translation = fromPos; | ||
GD.Print(fromPos); | ||
raycast.CastTo = toPos; | ||
raycast.Enabled = true; | ||
raycast.DebugShapeThickness = 20; | ||
raycast.CollideWithAreas = true; | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
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