56 Commits

Author SHA1 Message Date
ayachi3
f26402461a add function to provide interface 2022-12-16 23:05:08 +08:00
ayachi3
759f4ad688 add shininess attribute in mesh class 2022-12-16 16:03:53 +08:00
ayachi3
d181aefde7 lighting without abstraction 2022-12-15 18:43:04 +08:00
ayachi3
8adf864c39 将文件的复制与给予权限抽象成一个函数。
添加光照渲染函数
2022-12-15 16:13:52 +08:00
ayachi3
df803c8dea add light and change shader 2022-12-15 11:23:52 +08:00
ayachi3
294cf7efb3 lighting v0.0 2022-12-14 20:14:16 +08:00
胤龙
608b0fb71a skybox v0.0
旧UI最后版本存档
2022-12-14 17:49:43 +08:00
7f46566c64
Fix texture loading
- Fix corrupted texture by reverse y-axis
2022-12-13 21:10:38 +08:00
2511dedf8c
Fix Camera
- Update rotate methods
- Fix view matrix function
2022-12-13 20:47:01 +08:00
Linloir
061461332b
Merge pull request #1 from Linloir/camera_linloir
Update Camera
2022-12-13 20:43:01 +08:00
1792c296c7
Update Camera
- Fix precision loss when rotating (by extracting the locked distance and multiply it back after rotating)
- Implement a new way of rotating the camera: locked center distance
2022-12-13 20:35:46 +08:00
胤龙
59dc5f9e74 第三人称camera
目前是以0,0,0为中心旋转
2022-12-13 20:17:52 +08:00
069aca1cf2
Add camera movement
- Add camera API
- Add mouse event
- Add member
2022-12-13 16:30:49 +08:00
f5f2247274
Update Camera class
- remove roll
- add constructor (position, yaw, pitch)
- add API setPosition(pos)
- set default zoom to 90
2022-12-13 13:52:15 +08:00
a49f215928
Set matrix when rendering 2022-12-13 13:51:03 +08:00
b9ce5af24b
Minor fixes 2022-12-13 13:07:34 +08:00
3ee5f66779
Fix QFile not overriding existing shader
- fix shader not responding to changes
2022-12-13 13:07:19 +08:00
955c8da52e
Update mesh class
- set vertex attribute on setup mesh
- use new API of shader.setUniform
2022-12-13 12:29:54 +08:00
c911ac1613
Fix model loading
- Fix texture path storing full path instead of texture name making the texture loaded check always fail
2022-12-13 12:26:58 +08:00
5f07f8896c
Fix set uniform methods
- Move wrongly placed methods (Shader -> ShaderProgram)
- Set methods as 'inline'
- Use overload
- Check for uniform validity
2022-12-13 10:52:11 +08:00
胤龙
4c137d1e9f 给shader添加了uniform的功能
直接添加在基类Shader中的
2022-12-13 10:34:09 +08:00
df6ebf1157
Fix shader program attaching shader
- Add link function
2022-12-13 10:19:10 +08:00
e02160435a
Add id check when disposing ebo and vbo 2022-12-13 10:12:57 +08:00
58593822a3
Add extra checks to ebo, vao and vbo 2022-12-13 10:10:10 +08:00
e203ee0ff3
Merge 2022-12-13 10:06:28 +08:00
107f3ce87a
Add extra checks when dispose and ensureInitialized 2022-12-13 10:04:25 +08:00
b5e5b4cfa9
Fix compile time errors 2022-12-13 09:56:34 +08:00
ayachi3
59c4b24a98 modify model to add LOADED status 2022-12-13 09:54:55 +08:00
7ce0a4e27d
Add "ensureInitialize" function and now we can make empty objects 2022-12-13 09:43:54 +08:00
ayachi3
0cc3672c33 update model to set LOADED 2022-12-13 09:43:43 +08:00
c9667342bf
Add shader files to qrc 2022-12-13 08:58:32 +08:00
258423ccae
Test for qrc 2022-12-13 08:58:03 +08:00
7f7d99caa8
Change test layout 2022-12-13 08:18:17 +08:00
8c990f447f
Change shader version 2022-12-13 08:17:55 +08:00
451d3e0c35
Fix shader compiler 2022-12-12 23:40:07 +08:00
f0a44afb4a
Hello Triangle Test 2022-12-12 23:29:29 +08:00
f61d270d0c
Change filename 2022-12-12 23:29:09 +08:00
f0022f0837
Change VAO constructor behavior 2022-12-12 23:28:40 +08:00
cc39428e22
Change logger to QDebug instead of cout 2022-12-12 23:28:17 +08:00
c848828868
Add error detecting in shader compiler 2022-12-12 23:00:00 +08:00
a44e2b932a
Minor changes 2022-12-12 22:52:34 +08:00
7b6b82b743
Add empty shaders 2022-12-12 22:52:28 +08:00
7761387403
Rename functions 2022-12-12 22:51:59 +08:00
0be2b379a2
Fix inline functions 2022-12-12 22:20:59 +08:00
d57a1514ee
Implement renderable class 2022-12-12 21:29:45 +08:00
04ad073263
Implement shader and mesh classes 2022-12-12 21:23:57 +08:00
64b4116979
Implement VBO EBO VAO 2022-12-12 20:41:53 +08:00
5bc0cb6c6f
Add stb image library to project 2022-12-12 17:16:07 +08:00
23499a9140
Implement vertex class 2022-12-12 16:46:56 +08:00
335c1bbd55
Update and Implement Model class 2022-12-12 16:43:50 +08:00