Commit Graph

264 Commits

Author SHA1 Message Date
luzhuang
588dc53066 Fix animator play backwards error and onStateExit not triggered when crossFade finished and actualDeltaTime error (#2325)
* fix: animator play backwards error

* fix: onStateExit not called when crossFade finished but state not finished

* fix: actualDelta time calculate error when speed is 0
2024-08-13 14:58:40 +08:00
singlecoder
192f5a8748 Fix measure text width error (#2247)
* fix(text): fix measure text width error
2024-08-08 18:43:59 +08:00
luzhuang
1fe60433fa Fix litePhysics raycast error (#2321)
* fix: litePhysics raycast error
2024-08-08 15:53:22 +08:00
AZhan
17ccfb433a Fix transform parent dirty error when added as root entity (#2311)
* fix: transform parent dirty error when added as root entity
2024-08-07 11:04:30 +08:00
GuoLei1990
b093760fc5 Merge branch 'main' into dev/1.3 2024-08-01 13:03:06 +08:00
luzhuang
9d349128a9 Fix animation time error because of speed and precision && fix: animatorParameter rename bug (#2273)
* fix: animation time error because of speed and precision
2024-07-29 19:42:31 +08:00
luzhuang
8b02aa007b Fix evaluate value error when switch layer state && get target value error in stateMachine callback and animation event (#2258)
* fix: evaluate value error when switch layer state

* fix: get target value error in stateMachine callback and animation event

* fix: AnimatorController ref bug
2024-07-26 22:17:02 +08:00
AZhan
07970c9ef9 fix: SkinnedRenderer.boundingBox updates are not timely 2024-07-26 19:01:45 +08:00
luzhuang
43d9f86672 Fix update size error when charactorController disabled (#2259)
* fix: update size error when charactorController disabled
2024-07-26 12:05:05 +08:00
GuoLei1990
4e92999e9f Merge commit '4fbf848cc81a7f7072aae05edecf3f6dd035394a' into dev/1.3 2024-07-22 14:57:40 +08:00
SwayYan
cb9ea62605 Path in #include directive support relative path against to shader's path AND fix code generation error when target language is gles 100 (#2241)
* fix: path in `#include` directive support relative path against to shader's path AND fix code generation error when target language is gles 100
2024-07-18 15:36:25 +08:00
zhuxudong
c13489f677 Clamp shadow strength to 0~1 (#2233)
* fix: clamp shadow strength to 0~1
2024-07-17 13:16:24 +08:00
SwayYan
1a1870821e Refactoring the ShaderLab Compiler Module using the LALR Algorithm for Enhanced GLSL Compatibility and Reduced Build Size (#2113)
* refactor: refactoring the ShaderLab Compiler Module
2024-07-15 18:05:28 +08:00
AZhan
33c4370146 Camera setReplacementShader support ReplacementFailureStrategy when failed (#2172)
* feat: camera `setReplacementShader` support  `ReplacementFailureStrategy ` when failed
2024-07-15 12:54:59 +08:00
singlecoder
de62de618e Fix measure text width error (#2171)
* fix(text): fix measure text width error
2024-07-15 12:52:42 +08:00
AZhan
8ab2056e02 CamerasetReplacementShader support ReplacementFailureStrategy when failed (#2163)
* feat: Camera`setReplacementShader` support  `ReplacementFailureStrategy ` when failed
2024-07-13 14:48:45 +08:00
zhuxudong
a69eb60495 Support post process (#2129)
* feat: support bloom shader

* feat: support bloom shader
2024-07-11 17:57:51 +08:00
singlecoder
93fae5b46b Fix set 2d color no working (#2128)
* fix(2d-color): fix set 2d color no working
2024-07-02 20:03:52 +08:00
zhuxudong
1ed35fa4f5 Fix sub asset repeated loading (#2107)
* fix: sub asset reload
2024-07-01 19:11:51 +08:00
GuoLei1990
8face3ba55 Merge branch 'main' into dev/1.3 2024-06-28 11:12:54 +08:00
luzhuang
e97305b24c Refactor state transition update logic and fix time bug (#2130)
* feat: refactor state transition update logic

* fix: time update bug
2024-06-27 22:47:39 +08:00
luzhuang
11de431902 Add transition conditions (#2096)
* feat: add transition condition
2024-06-21 17:20:12 +08:00
singlecoder
fd4ec24ee4 Refactor 2d render pipeline (#1708)
* refactor(2d pipeline): refactor 2d render pipeline
2024-06-19 18:22:05 +08:00
ChenMo
f513a645dd Optimize Shader default texture color (#2114)
* refactor: opt default texture
2024-06-17 13:09:41 +08:00
SwayYan
69b92f63ec Fix array index loss after compilation (#2111)
* fix(shader-lab): array index loss after compilation
2024-06-13 14:28:57 +08:00
JujieX
358eb48a6c ParticleRenderer support bounds and frustum culling (#2110)
* feat: calculate particleRenderer boundingBox
2024-06-07 17:46:03 +08:00
ChenMo
df181dd33f Revert "ParticleRenderer support bounds and frustum culling (#1963)" (#2109)
This reverts commit 6d0fdd8658.
2024-06-07 17:33:48 +08:00
JujieX
6d0fdd8658 ParticleRenderer support bounds and frustum culling (#1963)
* feat: calculate particleRenderer boundingBox
2024-06-07 17:31:43 +08:00
GuoLei1990
dd7f7f3032 Merge branch 'dev/1.3' of github.com:galacean/engine into dev/1.3 2024-06-03 15:45:22 +08:00
AZhan
724bafbd3a Add Script in onStart may cause some functions to not be executed correctly. (#2102)
* fix: add script in onstart bug
2024-05-30 17:05:48 +08:00
ChenMo
747877e9bc Redesign Skin of SkinnedMeshRenderer (#2100)
* feat: redesign the skin
2024-05-21 13:59:54 +08:00
luzhuang
1bf6822210 Fix the bug of animation playback for multiple same type components under an Entity (#2095)
* fix: multi subMesh animation bug
2024-05-13 14:07:19 +08:00
Kbscript
3b5d2945e2 Replace throw with console.error to prevent blocking the main thread (#2077)
* chore: replace throw with console.error to prevent blocking the main thread
2024-05-09 18:10:22 +08:00
SwayYan
4b2834500f Fixed the problem that function macro declaration is lost after compilation (#2087)
* fix: keep macro declaration
2024-05-09 17:27:44 +08:00
luzhuang
f465149f0f Fix two static colliders collided in lite physics (#2036)
* fix: two static colliders collided in lite physics
2024-05-09 17:23:47 +08:00
AZhan
3107f4f789 Fix mini program error in PointerManager and supplementary single test (#2033)
* fix: input unit test bug
2024-04-15 11:52:28 +08:00
AZhan
165d7ab0a8 fix: quaternion to euler bug (#2073) 2024-04-15 11:38:27 +08:00
zhuxudong
9bc4370935 Improve glslES3.00 shader syntax compatibility (#2048)
* feat: support texture `grad`,`proj` etc function

* feat: support `gl_FragDepthEXT` when use glslES 1.00

* fix:  fragment out written use glslES 1.00
2024-04-02 15:56:07 +08:00
Hu Song
2d08e44aec Fix url resolve error (#2049)
* fix: use standard url resolve
2024-04-01 14:39:26 +08:00
SwayYan
9937a0380d Fix compiling error introduced by preprocessor (#2028)
* fix: compiling to GLSL error when exist global function contained in a macro and the function implementation include varying struct property access

* fix: compiling to GLSL error when #define macro exist in #ifdef macro body

* fix: macro extend error due to preprocessor not ignoring comments
2024-03-13 11:18:32 +08:00
SwayYan
74cb1099c7 Fix the bug of global variable dosn't work in multi-pass ShaderLab (#2018)
* fix: global serialization in multi pass shader
2024-03-11 15:51:28 +08:00
ChenMo
eeb5a59a43 Camera support opaque texture (#1989)
* feat: camera support opaque texture
2024-03-05 15:31:54 +08:00
luzhuang
c1edb04544 Fix animation layer mask remove error (#2016)
* fix: layerMask remove error
2024-03-04 19:03:38 +08:00
GuoLei1990
5937321531 Merge branch 'main' into dev/1.2
* main:
  Fix gltf accessor's bufferView could be undefined (#2013)
  Fix `IPhysicsScene.removeColliderShape` not cleaned up `eventMap` (#2008)
2024-02-29 10:44:35 +08:00
AZhan
809ddf2dc2 Fix IPhysicsScene.removeColliderShape not cleaned up eventMap (#2008)
* fix: physic remove shape bug
2024-02-26 14:34:41 +08:00
SwayYan
55ea510062 Add Preprocessor in ShaderLab (#2009)
* feat(shaderlab): add preprocessor

* fix: compile error caused by order issue of #define macro
2024-02-26 11:40:02 +08:00
GuoLei1990
cabba01237 Merge branch 'dev/1.1' of github.com:galacean/engine into dev/shaderLab
# Conflicts:
#	packages/shader-lab/src/RuntimeContext.ts
#	packages/shader-lab/src/ShaderVisitor.ts
#	packages/shader-lab/src/ast-node/AstNode.ts
#	packages/shader-lab/src/parser/tokens/GLSLKeywords.ts
#	tests/src/shader-lab/ShaderLab.test.ts
#	tests/src/shader-lab/demo.shader
2024-02-22 16:38:32 +08:00
luzhuang
ebd9036810 Physics raycast hitResult add shape (#2004)
* feat: hitResult add shape
2024-02-22 16:20:57 +08:00
SwayYan
b7bbd42d55 Fix output glsl error when function overload exists in shaderlab source code (#2001)
* refactor: syntax for include code fragment

* fix: function overload serialization

* feat(wip): add shaderfactory unregister
2024-02-21 15:57:19 +08:00
ChenMo
ecf45f71f6 Texture support R32G32B32A32_UInt format (#1993)
* feat: Texture support `R32G32B32A32_UInt` format
2024-02-02 18:32:58 +08:00