Search found 5 matches

by bombquake
Sat Sep 16, 2023 4:48 pm
Forum: Support and Development
Topic: Is it possible to create CubeImage arrays?
Replies: 2
Views: 977

Re: Is it possible to create CubeImage arrays?

I see thank you. I wanted to use them because I have several cubemaps I'm using inside my shader for omnidirectional shadow mapping and the compiler doesn't support sampler variable indexing. My current solution is to hard-code going through an array of them (below they're in in point_light_shadow_m...
by bombquake
Sat Sep 16, 2023 3:21 am
Forum: Support and Development
Topic: Is it possible to create CubeImage arrays?
Replies: 2
Views: 977

Is it possible to create CubeImage arrays?

If I run

Code: Select all

local cubemap_array = love.graphics.newCanvas(1024,1024,10,{type="cube",format="depth16",readable=true})
print(cubemap_array:getTextureType())
print(cubemap_array:getLayerCount())
I get

Code: Select all

cube
1
there's only one layer, are cubeimage arrays supported?
by bombquake
Sun Sep 10, 2023 1:29 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1512512

Re: What's everyone working on? (tigsource inspired)

i've been learning about 3D rendering and modelling for the first time, here's what I have so far. there's more things like point lights&quadtree view culling I could add but I want to move on making the actual game&assets, it'll be an RPG with a chess battle system. https://github.com/pszer...
by bombquake
Sun Sep 03, 2023 1:52 am
Forum: Support and Development
Topic: love_Canvases undeclared identifier, cannot get shader to compile
Replies: 2
Views: 784

love_Canvases undeclared identifier, cannot get shader to compile

Hello I'm writing shader code that writes to multiple canvses, but keep getting Version 11.4.0 - Mysterious Mysteries Error: Error validating pixel shader code: Line 211: ERROR: 'love_Canvases' : undeclared identifier Line 211: ERROR: 'love_Canvases' : left of '[' is not of type array, matrix, or ve...