Levi

joined 5 months ago
9
submitted 3 weeks ago* (last edited 3 weeks ago) by Levi@lemmy.ca to c/godot@programming.dev
 

Hi, I've been playing around with Godot to learn some game development skills, but I've run into a problem. I'm trying to display some 2d "cards" on the screen, and their texture is being generated by a shader. However, each card looks exactly the same, where I'd like some variation between the cards.

So I passed a seed value into my shader using:

instance uniform float seed;

And in my GDScript code:

func _ready() -> void:
    color_rect.material.set_shader_parameter("seed", randf() )

I've also tried:

func _ready() -> void:
    color_rect.set_instance_shader_parameter("seed", randf() )

Nothing breaks, but each of my cards are still identical, as if the seed value is the same for all three cards. From what I've read, the 'instance' keyword should let me pass a unique seed value for each object using the shader, right?

[–] Levi@lemmy.ca 19 points 4 weeks ago

I'll pick Godot as well. Started using it recently and its been a pretty smooth learning experience.

[–] Levi@lemmy.ca 4 points 1 month ago* (last edited 1 month ago) (3 children)

Great, glad to hear that Mint will be okay. I don't mind the slower kernel/driver updates. :)

2 quick followup questions:

  1. Should I set my filesystems to something other than ext4? I know some games in windows I feel like would benefit from a faster filesystem, but I don't know a whole lot about it.
  2. If I upgrade my videocard (I'm using a NVidia GTX something something), would it be better to go for an AMD card? Do they have better linux driver support?
 

Hi. I've been using Linux for decades on my work machines, but most of my knowledge is pretty rusty. However for gaming I've always used a Windows machine. I'm thinking of getting rid of microsoft entirely, since I've been hearing such good things about steam & proton lately.

I was going to just install Mint on my gaming computer, but since there are a ton of experts here, I figured I should check in to see if there is any reason not to use Mint for this? And if there is any other considerations or setup I should be aware of to keep my games running well?

[–] Levi@lemmy.ca 1 points 1 month ago

Is it a good watch if you aren't into k-pop?

[–] Levi@lemmy.ca 1 points 2 months ago

That does look pretty fun, I'll add it to my wishlist and see how it looks once its out of early access.

[–] Levi@lemmy.ca 3 points 4 months ago* (last edited 4 months ago)

Man, I wish greens had a better chance. :( Feels like nothing is ever going to change for the better.

6
submitted 4 months ago* (last edited 4 months ago) by Levi@lemmy.ca to c/ndp@lemmy.ca
 

So I can find the platform's for green, liberal and conservative, but the NDP website doesn't seem to have one. Is it not out yet, or are we just not getting one?

Edit: Whoops, I was looking at the BC conservatives, I guess the conservatives don't have one either.

[–] Levi@lemmy.ca 11 points 4 months ago

Nah, I agree 100%. I couldn't get into DF after those UI changes. Doing anything felt to awkward and slow because I had to keep switching to the mouse.

[–] Levi@lemmy.ca 4 points 4 months ago

I like doing chili and spaghetti. Just make a big batch and freeze for tons of meals.

[–] Levi@lemmy.ca 3 points 4 months ago

I got there first thing in the morning and I couldn't believe how long the lines were. Honestly it was great to see. :)

[–] Levi@lemmy.ca 2 points 5 months ago* (last edited 5 months ago)

I wish more of these sites had RSS feeds. I know The Narwhal and CBC do, but most don't seem to use it.

Also, thanks for making this list! :)