Skip to content

Commit

Permalink
bugfix: add GenNormals to default post options (for SimpleTexture)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Mar 15, 2024
1 parent 6c93509 commit 5d7fe72
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2023, Stephen Gold
Copyright (c) 2023-2024 Stephen Gold
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -49,6 +49,7 @@ public class LwjglAssetKey extends ModelKey {
= Assimp.aiProcess_CalcTangentSpace
| Assimp.aiProcess_JoinIdenticalVertices
| Assimp.aiProcess_Triangulate
| Assimp.aiProcess_GenNormals
| Assimp.aiProcess_ValidateDataStructure
| Assimp.aiProcess_RemoveRedundantMaterials
| Assimp.aiProcess_SortByPType //| Assimp.aiProcess_FlipUVs
Expand Down Expand Up @@ -106,7 +107,7 @@ public LwjglAssetKey(String assetPath) {
*
* @param assetPath the name of (path to) the asset (not null)
* @param flags the desired post-processing flag values, ORed together
* (default=0x940b)
* (default=0x942b)
*/
public LwjglAssetKey(String assetPath, int flags) {
this(assetPath, defaultTextureLoader, flags);
Expand All @@ -129,7 +130,7 @@ public LwjglAssetKey(String assetPath, TextureLoader textureLoader) {
* @param assetPath the name of (path to) the asset (not null)
* @param textureLoader the desired texture-load options (not null)
* @param flags the desired post-processing flag values, ORed together
* (default=0x940b)
* (default=0x942b)
*/
public LwjglAssetKey(
String assetPath, TextureLoader textureLoader, int flags) {
Expand Down

0 comments on commit 5d7fe72

Please sign in to comment.