Skip to content

Commit

Permalink
type style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Acker committed May 3, 2023
1 parent 0c99069 commit ee70e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Stars/Fluff.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ extends MultiMeshInstance3D

func _ready():
## TODO: get texture from parent?
var image: Image = load("res://Stars/textures/galaxy.jpg").get_image()
var image: Image = (load("res://Stars/textures/galaxy.jpg") as Texture2D).get_image()
var size := image.get_size()

## TODO: get galaxy size from parent?
var xscale := 104000 / size.x
var zscale := 104000 / size.y

var instances: Array = []
var instances := []

## Max. instances per pixel
var ipp := int((104000**2) / (size.x * size.y) / 10000)
Expand Down

0 comments on commit ee70e27

Please sign in to comment.