-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the code for LÖVE 11 #2
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! mostly looks good to me, but the cpml change should be handled differently. I don't want it to diverge from upstream
{ a[1], a[5], a[9], a[13] }, | ||
{ a[2], a[6], a[10], a[14] }, | ||
{ a[3], a[7], a[11], a[15] }, | ||
{ a[4], a[8], a[12], a[16] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the correct fix here is actually just changing the arguments to shader:send to indicate that it is transposed - this should also be introduced as a variant of the to_vec4s function in upstream though (or it should take a transpose bool argument)
l3d.new_canvas(w, h, "rgba16f", 1, true), -- color/depth | ||
love.graphics.newCanvas(w, h, "rg11b10f") -- normals | ||
love.graphics.newCanvas(w, h, {format = 'rgba16f'}), | ||
love.graphics.newCanvas(w, h, {format = 'rg11b10f'}) -- normals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix indentation
Note that this is the least effort sort of thing. It still uses the old versions of all the libraries, patching them as necessary; the most egregious being the change to
mat4.to_vec4s
.