Skip to content

Commit

Permalink
modify GIScale range (cocos#13584)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyljl authored Nov 29, 2022
1 parent 00eddc4 commit 0f59c48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cocos/scene-graph/scene-globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ export class LightProbeInfo {
* @zh GI乘数
*/
@editable
@range([0.1, 10, 0.1])
@range([0.01, 100, 1])
@type(CCFloat)
@tooltip('i18n:light_probe.giScale')
@displayName('GIScale')
Expand Down
2 changes: 1 addition & 1 deletion native/cocos/gi/light-probe/Delaunay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void Delaunay::addProbe(int32_t vertexIndex) {
void Delaunay::reorder(const Vec3 &center) {
// The tetrahedron in the middle is placed at the front of the vector
std::sort(_tetrahedrons.begin(), _tetrahedrons.end(), [center](Tetrahedron &a, Tetrahedron &b) {
return a.sphere.center.distanceSquared(center) <= b.sphere.center.distanceSquared(center);
return a.sphere.center.distanceSquared(center) < b.sphere.center.distanceSquared(center);
});
}

Expand Down

0 comments on commit 0f59c48

Please sign in to comment.