This website requires JavaScript.
b9f5c69f85
optimized to get normal in AutoShader
hyzboy
2024-03-12 23:29:38 +08:00
c469fde84a
adjusted order of codes in Std2DMaterialLoader.cpp and Std3DMaterialLoader.cpp
hyzboy
2024-03-12 23:29:06 +08:00
dd6b2f4fb3
add "hasInput(const char *name)" in ShaderDescriptorInfo and ShaderCreateInfoVertex classes.
hyzboy
2024-03-12 23:28:23 +08:00
ba8b44659b
resume GetNormalMatrix/GetNormal in auto shader.
hyzboy
2024-03-12 23:04:12 +08:00
13b2ca0575
fixed Viewport UBO bug.
hyzboy
2024-03-12 22:54:33 +08:00
9d704eb33d
updated comments.
hyzboy
2024-03-12 22:31:58 +08:00
86c3b65a42
fixed -normal bug in InlineGeometry.cpp
hyzboy
2024-03-12 21:53:41 +08:00
f6e61e70ce
更改了specular算法,但是有点问题。。。而且高光区有点象是VS算的一样,怀疑是NORMAL在VS算的原因。但fs没有GetLocalToWorld函数,需要尝试修复。
hyzboy
2024-03-12 00:42:32 +08:00
5347ac7091
specular OK in BlinnPhongDirectionLight sample. but direction error.
hyzboy
2024-03-10 22:45:38 +08:00
f56928d734
Fixed bug about SunLightPureColor.mtl
hyzboy
2024-03-10 01:00:42 +08:00
f3a59c1bb3
test sunlight UBO ok!
hyzboy
2024-03-10 00:35:35 +08:00
5188d4149c
added Unknow and Static in DescriptorSetType
hyzboy
2024-03-09 23:35:56 +08:00
d4096735f5
adjusted order of codes in MaterialCreateInfo.h
hyzboy
2024-03-09 23:23:34 +08:00
4fafd938b1
new function, MaterialFileData load UBO OK! to make shader OK.
hyzboy
2024-03-09 22:26:45 +08:00
f0848541c2
added a newly AddUBO() in MaterialCreateInfo
hyzboy
2024-03-09 22:25:03 +08:00
cc9e756ece
fixed Load of ubo codes.
hyzboy
2024-03-09 21:23:02 +08:00
cdedc81f9f
save codes of UBO in AccumMemoryManager
hyzboy
2024-03-09 20:48:30 +08:00
c229259623
added comments
hyzboy
2024-03-09 19:49:44 +08:00
2c2f11f47e
added little safe check of filename in MaterialFileLoader.cpp
hyzboy
2024-03-07 23:04:54 +08:00
c8b3ed0286
preparing blinnphong light sample. added codes of to load ubo.
hyzboy
2024-03-07 13:59:28 +08:00
2ce36ec26c
fixed a bug in ShaderCreateInfoVertex.cpp, put "C-style string" in function that it's a bug.
hyzboy
2024-03-07 00:07:49 +08:00
5ba3c1790d
removed standalone ".glsl" files ,merge to c++ codes.
hyzboy
2024-03-06 23:24:57 +08:00
3874d771d3
aligned codes, append CreateIBO8 functions in VKRenderResource.h
hyzboy
2024-03-06 22:51:07 +08:00
49eb8f42f0
updated DescriptorBinding::BindUBO, to support dynamic param.
hyzboy
2024-03-06 22:40:51 +08:00
c355f96f9b
little codes
hyzboy
2024-03-06 13:54:05 +08:00
dc3d7b7792
removed BindingMapping
hyzboy
2024-03-06 00:29:17 +08:00
5f1c60a24a
Improved VKDescriptorBindingManage
hyzboy
2024-03-06 00:26:23 +08:00
ff6a644e8f
added BlinnPhong.h
hyzboy
2024-03-04 13:13:33 +08:00
b9e70426a1
removed sun.ubo, next step is UBO in C++
hyzboy
2024-03-04 13:12:29 +08:00
a7af276a44
updated SunLightPureColor.mtl
hyzboy
2024-03-04 12:58:22 +08:00
8b82c6c25c
support the new other codes.
hyzboy
2024-03-02 10:35:27 +08:00
a8d68c295d
renamed many values.
hyzboy
2024-02-13 22:27:12 +08:00
f666d5b248
renamed values of BlinnPhongDirectionLight.cpp
hyzboy
2024-02-12 08:23:31 +08:00
55c27a883b
init empty BlinnPhongDirectionLight example
hyzboy
2024-02-12 08:20:24 +08:00
6a7f8e7754
fixed access method
hyzboy
2024-02-03 19:53:19 +08:00
1dbf8ae5c7
renamed values.
hyzboy
2023-12-24 01:35:30 +08:00
8dbc1d899c
added to Check ubolist in MaterialFileLoader.cpp
hyzboy
2023-12-05 02:24:09 +08:00
d010ee4278
I updated two sub-modules, Platform and Util.
hyzboy
2023-12-05 02:13:21 +08:00
4aeb28c571
added a parse in MaterialFileLoader.cpp that it's UBOParse
hyzboy
2023-12-05 02:08:18 +08:00
775e031422
added VK_LAYER_AMD_switchable_graphics in VKInstance.h/VKProperties.cpp
hyzboy
2023-12-05 02:07:25 +08:00
deefdf1416
used uint instead of int in Size of viewport
hyzboy
2023-11-10 04:24:10 +08:00
ba2d479f05
improved Gizmo3DMove.cpp
new_RenderList
HuYingzhuo(hugo/hyzboy)
2023-11-02 18:51:02 +08:00
b16341c0f9
draw gizmo3d move, next step is mouse to pick the gizmo
HuYingzhuo(hugo/hyzboy)
2023-11-01 18:37:10 +08:00
d5eeb081e1
removed codes about RenderCmdBuffer::SetLineWidth
HuYingzhuo(hugo/hyzboy)
2023-11-01 18:36:20 +08:00
4bb66d2746
added "wide_lines" requirment in CreateRenderDevice and VulkanAppFramework
HuYingzhuo(hugo/hyzboy)
2023-11-01 11:00:55 +08:00
625a7387ae
adjusted VulkanHardwareRequirement order in CreateRenderDevice functions.
HuYingzhuo(hugo/hyzboy)
2023-11-01 10:59:51 +08:00
c4deceebd9
first step for BlinnPhongPureColor
HuYingzhuo(hugo/hyzboy)
2023-10-31 17:59:12 +08:00
4ed0e281b2
first run MetricCellsGrid OK!
HuYingzhuo(hugo/hyzboy)
2023-10-13 19:22:11 +08:00
9369ad115b
UBO ViewportInfo in All graphics shader.
HuYingzhuo(hugo/hyzboy)
2023-10-13 19:21:34 +08:00
7788459109
improved and fixed CreatePlane
HuYingzhuo(hugo/hyzboy)
2023-10-13 19:21:04 +08:00
a58589f01f
moved AddBuffer to .h for RenderResource
HuYingzhuo(hugo/hyzboy)
2023-10-13 10:47:42 +08:00
240b6fb0e3
added UBO/SSBO/INBO debug output.
HuYingzhuo(hugo/hyzboy)
2023-10-13 10:42:21 +08:00
b72a924853
Merge branch 'devel_27_Default3DMaterial' of http://www.hyzgame.com:3000/hyzboy/ULRE into devel_27_Default3DMaterial
HuYingzhuo(hugo/hyzboy)
2023-10-13 09:55:20 +08:00
b781ff41a3
removed codes about VkDebugMaker
hyzboy
2023-10-13 02:01:57 +08:00
4ee6962d04
added lot of debug output based VkDebugUtils
hyzboy
2023-10-13 01:48:07 +08:00
7eff39b3b0
draw_triangle_use_UBO support u16 position format and u8 norm color format.
HuYingzhuo(hugo/hyzboy)
2023-10-12 15:00:39 +08:00
6b13c159d8
added comp operator in MaterialConfig
HuYingzhuo(hugo/hyzboy)
2023-10-12 14:59:39 +08:00
2f560a28a7
fixed all examples that can RUN OK!
HuYingzhuo(hugo/hyzboy)
2023-10-12 10:39:43 +08:00
8ba171efda
added debug name.
hyzboy
2023-10-12 05:55:39 +08:00
317635877b
optimized MaterialRenderList, removed last_vil(pipeline already include vil), don't create assign_buffer if material don't include assign
hyzboy
2023-10-12 02:24:58 +08:00
255c7859f1
optimized DescriptorSets::Update
hyzboy
2023-10-12 01:40:59 +08:00
ae85d3fc66
removed ReverseDirection from CameraMouseControl
hyzboy
2023-10-12 01:39:47 +08:00
a5830e18cb
added ReserveDirection
HuYingzhuo(hugo/hyzboy)
2023-10-11 19:38:12 +08:00
ae88a65315
added newly CreateMaterialInstance that include MIData
HuYingzhuo(hugo/hyzboy)
2023-10-11 19:14:24 +08:00
77b0266cdc
Used SceneAppFramework instead of CameraAppFramework in RayPicking.cpp
HuYingzhuo(hugo/hyzboy)
2023-10-11 19:06:18 +08:00
c99934fdf9
added RenderResource::LoadMaterial functions, it can't easy CreateMaterial from file.
HuYingzhuo(hugo/hyzboy)
2023-10-11 19:02:17 +08:00
aa6071a948
added newly files and adjust comments.
HuYingzhuo(hugo/hyzboy)
2023-10-11 18:50:06 +08:00
6f58475abd
added SceneAppFramework, global_descriptor.Bind used auto-mode.
HuYingzhuo(hugo/hyzboy)
2023-10-11 18:49:29 +08:00
cfed14d746
renamed to require_list instead of require in MaterialFileData
HuYingzhuo(hugo/hyzboy)
2023-10-11 13:14:34 +08:00
27c409c7fd
added To parse "require" of the MaterialBlock in MaterialFileLoader.cpp
HuYingzhuo(hugo/hyzboy)
2023-10-11 13:12:51 +08:00
bee48890cb
optimized codes of MaterialFileLoader.cpp
HuYingzhuo(hugo/hyzboy)
2023-10-10 19:30:07 +08:00
a2669d2123
adjust class's name in MaterialFileLoader.cpp
HuYingzhuo(hugo/hyzboy)
2023-10-10 19:21:33 +08:00
737438aaed
added Normal.glsl BlinnPhongPureColor.mtl
HuYingzhuo(hugo/hyzboy)
2023-10-10 19:14:10 +08:00
8a5711154f
finished StdMaterialLoader, test all examples ok.
HuYingzhuo(hugo/hyzboy)
2023-10-10 14:49:33 +08:00
3dd308aff1
added sampler parse in MaterialFileLoader.cpp
HuYingzhuo(hugo/hyzboy)
2023-10-10 14:46:20 +08:00
bead8128b7
test ok that LoadPureColor2D material from file.
HuYingzhuo(hugo/hyzboy)
2023-10-10 10:57:29 +08:00
019e9964fa
Merge branch 'devel_27_Default3DMaterial' of http://www.hyzgame.com:3000/hyzboy/ULRE into devel_27_Default3DMaterial
HuYingzhuo(hugo/hyzboy)
2023-10-10 09:49:59 +08:00
7ca81f38e8
Std2DMaterialLoader start ok,,but don't support Sampler2D in material file...
hyzboy
2023-10-10 02:48:02 +08:00
03750832c8
MaterialFileData added origin data.
hyzboy
2023-10-10 01:19:05 +08:00
018a72c09a
created MaterialFileData and all material's data in the struct.
hyzboy
2023-10-10 00:24:41 +08:00
55fee1e5d7
renamed few class name;
HuYingzhuo(hugo/hyzboy)
2023-10-09 21:13:34 +08:00
c5dd359d18
Added Std2DMaterialLoader and Std3DMaterialLoader
HuYingzhuo(hugo/hyzboy)
2023-10-09 20:57:46 +08:00
85ec666989
used FragColor instead of Color in Fragment shader.
HuYingzhuo(hugo/hyzboy)
2023-10-09 20:56:56 +08:00
9a5cead33e
moved Create to StdMaterial from Std2DMaterial and Std3DMaterial
HuYingzhuo(hugo/hyzboy)
2023-10-09 20:56:25 +08:00
695f1a22a8
used Block instead of State in MaterialFileLoader.cpp
HuYingzhuo(hugo/hyzboy)
2023-10-09 18:02:03 +08:00
237c1a469b
writed GeometryShaderStateParse, need to test in furture.
hyzboy
2023-10-09 03:15:42 +08:00
5ede824522
MaterialTextParse completed VertexShader/FragmentShader parse.
hyzboy
2023-10-09 02:22:38 +08:00
46781b9627
used "VertexInput" state in .mtl file-format.
hyzboy
2023-10-09 02:21:56 +08:00
aaff0c23c9
improved CodeParse in MaterialFileLoader.cpp
hyzboy
2023-10-09 01:23:06 +08:00
3a3f9d10b7
Parse MaterialInstance filed in MaterialFileLoader.cpp
hyzboy
2023-10-09 01:12:27 +08:00
b6e391762b
added MaterialInstanceStateParse
HuYingzhuo(hugo/hyzboy)
2023-10-08 20:38:54 +08:00
b262fdc645
added MaterialFileLoader.cpp
HuYingzhuo(hugo/hyzboy)
2023-10-08 20:00:46 +08:00
5e795c4a7f
fragment shader output use "FragColor" instead of "Color".
HuYingzhuo(hugo/hyzboy)
2023-10-08 10:40:01 +08:00
0524c51feb
Set Base-class StdMaterial to Std2DMaterial/Std3DMaterial
HuYingzhuo(hugo/hyzboy)
2023-10-08 10:04:58 +08:00
8dc9846ae8
Merge remote-tracking branch 'github/devel_27_Default3DMaterial' into devel_27_Default3DMaterial
hyzboy
2023-10-07 23:37:20 +08:00
1d866abb48
use List<const char *> instead of AnsiStringList in ShaderCreateInfo::function_list
hyzboy
2023-10-07 23:35:22 +08:00
ece7912f3c
removed ShaderCreateInfoFragment::UseDefaultMain
hyzboy
2023-10-07 23:34:36 +08:00
4ef37a430e
move Material2DCreateConfig/Material3DCreateConfig
HuYingzhuo(hugo/hyzboy)
2023-10-07 20:59:44 +08:00
1f91ec94e1
added Std2D/3D material files.
HuYingzhuo(hugo/hyzboy)
2023-10-07 20:09:16 +08:00
86123827cb
moved glsl to standalone .glsl file.
HuYingzhuo(hugo/hyzboy)
2023-10-07 17:02:00 +08:00