Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 2 additions & 46 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,43 +61,6 @@ jobs:
name: Windows
path: ./Dev/Plugin/Assets/Effekseer/Plugins

webgl_1-38:
name: WebGL Build with emsdk 1.38
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Cache emsdk
id: cache
uses: actions/cache@v4
with:
path: ./emsdk
key: ${{ runner.os }}-emsdk-1_38-v1

- name: install emsdk 1.38
if: steps.cache.outputs.cache-hit != 'true'
run: |
git clone https://github.com/emscripten-core/emsdk.git -b 3.1.19 --depth 1
cd emsdk
./emsdk install sdk-fastcomp-tag-1.38.11-64bit
cd ..

- run: sh scripts/clone_dependencies.sh
- run: |
./emsdk/emsdk activate sdk-fastcomp-tag-1.38.11-64bit
source ./emsdk/emsdk_env.sh
cd ./Dev/Cpp/webgl
mkdir build138
cd build138
emcmake cmake -DCMAKE_BUILD_TYPE=Release ..
make
cp libEffekseerUnity.bc ../../../Plugin/Assets/Effekseer/Plugins/WebGL/
- name: Upload math result for webgl
uses: actions/upload-artifact@v4
with:
name: WebGL_1-38
path: ./Dev/Plugin/Assets/Effekseer/Plugins

webgl_2-0-19:
name: WebGL Build with emsdk 2.0.19
runs-on: ubuntu-latest
Expand Down Expand Up @@ -212,7 +175,7 @@ jobs:
merge:
name: merge
runs-on: ubuntu-latest
needs: [android, mac_ios, windows, webgl_1-38,webgl_2-0-19,webgl_3-1-8,webgl_3-1-38]
needs: [android, mac_ios, windows, webgl_2-0-19,webgl_3-1-8,webgl_3-1-38]
steps:
- uses: actions/checkout@v4
- name: Download Android
Expand All @@ -234,12 +197,6 @@ jobs:
name: Windows
path: Windows

- name: Download webgl 1.38
uses: actions/[email protected]
with:
name: WebGL_1-38
path: WebGL_1-38

- name: Download webgl 2.0.19
uses: actions/[email protected]
with:
Expand All @@ -266,7 +223,6 @@ jobs:
mv mac_iOS/iOS/libEffekseerUnity.a Dev/Plugin/Assets/Effekseer/Plugins/iOS/libEffekseerUnity.a
rm -rf Dev/Plugin/Assets/Effekseer/Plugins/EffekseerUnity.bundle
cp -f -r mac_iOS/EffekseerUnity.bundle Dev/Plugin/Assets/Effekseer/Plugins/
mv WebGL_1-38/WebGL/libEffekseerUnity.bc Dev/Plugin/Assets/Effekseer/Plugins/WebGL/
mv WebGL_2-0-19/WebGL/2.0.19-64bit/libEffekseerUnity.bc Dev/Plugin/Assets/Effekseer/Plugins/WebGL/2.0.19-64bit/
mv WebGL_3-1-8/WebGL/3.1.8-64bit/libEffekseerUnity.bc Dev/Plugin/Assets/Effekseer/Plugins/WebGL/3.1.8-64bit/
mv WebGL_3-1-38/WebGL/3.1.38-64bit/libEffekseerUnity.bc Dev/Plugin/Assets/Effekseer/Plugins/WebGL/3.1.38-64bit/
Expand All @@ -289,4 +245,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Effekseer.unitypackage
path: dist
path: dist
7 changes: 4 additions & 3 deletions Dev/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ endif()
if(APPLE)
cmake_policy(SET CMP0114 NEW)
if(BUILD_FOR_IOS OR BUILD_FOR_IOS_SIM)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.0" CACHE STRING "Minimum OS X deployment version" FORCE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "14.0" CACHE STRING "Minimum iOS deployment version" FORCE)
else()
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment version" FORCE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0" CACHE STRING "Minimum macOS deployment version" FORCE)
endif()
endif()

Expand Down Expand Up @@ -41,6 +41,7 @@ if(SANITIZE_ENABLED)
endif()

if(BUILD_FOR_IOS OR BUILD_FOR_IOS_SIM)
set(BUILD_TOOLS OFF CACHE INTERNAL "" FORCE)
set(USE_OPENGLES3 ON CACHE INTERNAL "" FORCE)
set(BUILD_UNITYPLUGIN_FOR_IOS ON CACHE INTERNAL "" FORCE)
else()
Expand All @@ -53,4 +54,4 @@ add_subdirectory(Cpp)
if(BUILD_FOR_IOS OR BUILD_FOR_IOS_SIM)
target_compile_options(Effekseer PUBLIC -fembed-bitcode)
target_compile_options(EffekseerRendererCommon PUBLIC -fembed-bitcode)
endif()
endif()
38 changes: 22 additions & 16 deletions Dev/Cpp/android/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,24 @@ LOCAL_SRC_FILES += \
$(LIB_SRC_PATH)/Effekseer.Vector2D.cpp \
$(LIB_SRC_PATH)/Effekseer.Vector3D.cpp \
$(LIB_SRC_PATH)/Effekseer.WorkerThread.cpp \
$(LIB_SRC_PATH)/ForceField/ForceFields.cpp \
$(LIB_SRC_PATH)/ForceField/Effekseer.ForceFields.cpp \
$(LIB_SRC_PATH)/IO/Effekseer.EfkEfcFactory.cpp \
$(LIB_SRC_PATH)/Material/Effekseer.CompiledMaterial.cpp \
$(LIB_SRC_PATH)/Material/Effekseer.MaterialCompiler.cpp \
$(LIB_SRC_PATH)/Material/Effekseer.MaterialFile.cpp \
$(LIB_SRC_PATH)/Model/Model.cpp \
$(LIB_SRC_PATH)/Model/ModelLoader.cpp \
$(LIB_SRC_PATH)/Model/ProceduralModelGenerator.cpp \
$(LIB_SRC_PATH)/Model/SplineGenerator.cpp \
$(LIB_SRC_PATH)/Noise/CurlNoise.cpp \
$(LIB_SRC_PATH)/Model/Effekseer.Model.cpp \
$(LIB_SRC_PATH)/Model/Effekseer.ModelLoader.cpp \
$(LIB_SRC_PATH)/Model/Effekseer.ProceduralModelGenerator.cpp \
$(LIB_SRC_PATH)/Model/Effekseer.PointCacheGenerator.cpp \
$(LIB_SRC_PATH)/Model/Effekseer.SplineGenerator.cpp \
$(LIB_SRC_PATH)/Noise/Effekseer.CurlNoise.cpp \
$(LIB_SRC_PATH)/Parameter/Effekseer.Collisions.cpp \
$(LIB_SRC_PATH)/Parameter/Effekseer.Easing.cpp \
$(LIB_SRC_PATH)/Parameter/Effekseer.GpuParticlesParameter.cpp \
$(LIB_SRC_PATH)/Parameter/Effekseer.KillRules.cpp \
$(LIB_SRC_PATH)/Parameter/Effekseer.Parameters.cpp \
$(LIB_SRC_PATH)/Parameter/Easing.cpp \
$(LIB_SRC_PATH)/Parameter/Rotation.cpp \
$(LIB_SRC_PATH)/Parameter/Effekseer.Rotation.cpp \
$(LIB_SRC_PATH)/Parameter/Effekseer.Trigger.cpp \
$(LIB_SRC_PATH)/SIMD/Mat43f.cpp \
$(LIB_SRC_PATH)/SIMD/Mat44f.cpp \
$(LIB_SRC_PATH)/SIMD/Utils.cpp \
Expand All @@ -94,30 +99,31 @@ LOCAL_SRC_FILES += \
$(LIB_SRC_PATH)/GLSLGenerator/ShaderGenerator.cpp \
$(LIB_SRC_PATH)/Common/ShaderGeneratorCommon.cpp

LIB_SRC_PATH := $(LOCAL_PATH)/../../Effekseer/Dev/Cpp/EffekseerRendererCommon
LIB_SRC_PATH := $(LOCAL_PATH)/../../Effekseer/Dev/Cpp/EffekseerRendererCommon/EffekseerRendererCommon
LOCAL_SRC_FILES += \
$(LIB_SRC_PATH)/GraphicsDeviceCPU.cpp \
$(LIB_SRC_PATH)/TextureLoader.cpp \
$(LIB_SRC_PATH)/ModelLoader.cpp \
$(LIB_SRC_PATH)/VertexBuffer.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.CommonUtils.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.DDSTextureLoader.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.GpuParticles.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.ModelRendererBase.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.PngTextureLoader.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.Renderer.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.Renderer_Impl.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.RenderStateBase.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.RibbonRendererBase.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.RingRendererBase.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.SpriteRendererBase.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.TrackRendererBase.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.CommonUtils.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.DDSTextureLoader.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.PngTextureLoader.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.TGATextureLoader.cpp
$(LIB_SRC_PATH)/EffekseerRenderer.TGATextureLoader.cpp \
$(LIB_SRC_PATH)/EffekseerRenderer.TrackRendererBase.cpp

LIB_SRC_PATH := $(LOCAL_PATH)/../../Effekseer/Dev/Cpp/EffekseerRendererGL/EffekseerRenderer
LIB_SRC_PATH := $(LOCAL_PATH)/../../Effekseer/Dev/Cpp/EffekseerRendererGL/EffekseerRendererGL
LOCAL_SRC_FILES += \
$(LIB_SRC_PATH)/EffekseerRendererGL.DeviceObject.cpp \
$(LIB_SRC_PATH)/EffekseerRendererGL.GLExtension.cpp \
$(LIB_SRC_PATH)/EffekseerRendererGL.GPUTimer.cpp \
$(LIB_SRC_PATH)/EffekseerRendererGL.GpuTimer.cpp \
$(LIB_SRC_PATH)/EffekseerRendererGL.MaterialLoader.cpp \
$(LIB_SRC_PATH)/EffekseerRendererGL.ModelRenderer.cpp \
$(LIB_SRC_PATH)/EffekseerRendererGL.Renderer.cpp \
Expand Down
2 changes: 1 addition & 1 deletion Dev/Cpp/android/jni/Application_arm64-v8a.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
APP_OPTIM := release
APP_PLATFORM := android-18
APP_PLATFORM := android-21
APP_STL := c++_static
APP_ABI := arm64-v8a
APP_CPPFLAGS := -std=c++17
2 changes: 1 addition & 1 deletion Dev/Cpp/android/jni/Application_armeabi-v7a.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
APP_OPTIM := release
APP_PLATFORM := android-18
APP_PLATFORM := android-21
APP_STL := c++_static
APP_ABI := armeabi-v7a
APP_CPPFLAGS := -std=c++17
2 changes: 1 addition & 1 deletion Dev/Cpp/android/jni/Application_x86.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
APP_OPTIM := release
APP_PLATFORM := android-18
APP_PLATFORM := android-21
APP_STL := c++_static
APP_ABI := x86
APP_CPPFLAGS := -std=c++17
2 changes: 1 addition & 1 deletion Dev/Cpp/android/jni/Application_x86_64.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
APP_OPTIM := release
APP_PLATFORM := android-18
APP_PLATFORM := android-21
APP_STL := c++_static
APP_ABI := x86_64
APP_CPPFLAGS := -std=c++17
2 changes: 1 addition & 1 deletion Dev/Cpp/common/EffekseerPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#else

#include <EffekseerRenderer.Renderer.h>
#include <EffekseerRendererCommon/EffekseerRenderer.Renderer.h>

#endif

Expand Down
2 changes: 1 addition & 1 deletion Dev/Cpp/graphicsAPI/EffekseerPluginGraphicsGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#ifdef __EFFEKSEER_FROM_MAIN_CMAKE__
#else
#include <EffekseerRenderer/EffekseerRendererGL.MaterialLoader.h>
#include <EffekseerRendererGL/EffekseerRendererGL.MaterialLoader.h>
#endif

#include "../common/EffekseerPluginMaterial.h"
Expand Down
28 changes: 14 additions & 14 deletions Dev/Cpp/renderer/EffekseerRendererImplemented.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void ModelRenderer::Rendering(const efkModelNodeParam& parameter, const efkModel

void ModelRenderer::EndRendering(const efkModelNodeParam& parameter, void* userData)
{
if (m_matrixes.size() == 0)
if (matrixes_.size() == 0)
return;
if (parameter.ModelIndex < 0)
return;
Expand Down Expand Up @@ -353,19 +353,19 @@ void ModelRenderer::EndRendering(const efkModelNodeParam& parameter, void* userD
renderer_->GetRenderState()->Update(false);

renderer_->DrawModel(model,
m_matrixes,
m_uv,
m_alphaUV,
m_uvDistortionUV,
m_blendUV,
m_blendAlphaUV,
m_blendUVDistortionUV,
m_flipbookIndexAndNextRate,
m_alphaThreshold,
m_colors,
m_times,
customData1_,
customData2_);
matrixes_,
uv_,
alphaUv_,
uvDistortionUv_,
blendUv_,
blendAlphaUv_,
blendUvDistortionUv_,
flipbookIndexAndNextRate_,
alphaThreshold_,
colors_,
times_,
customData1_,
customData2_);

renderer_->EndShader(shader);

Expand Down
2 changes: 1 addition & 1 deletion Dev/Cpp/renderer/EffekseerRendererRenderState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ RenderState::RenderState() {}

RenderState::~RenderState() {}

void RenderState::Update(bool forced) { m_active = m_next; }
void RenderState::Update(bool forced) { active_ = next_; }
} // namespace EffekseerRendererUnity
11 changes: 0 additions & 11 deletions Dev/Cpp/webgl/Build_1.38.11.bat

This file was deleted.

8 changes: 3 additions & 5 deletions Dev/Cpp/webgl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

project(Effekseer)

cmake_minimum_required(VERSION 3.10)
project(Effekseer)
cmake_minimum_required(VERSION 3.15)


string(APPEND CMAKE_EXE_LINKER_FLAGS " -s WASM=1")
Expand Down Expand Up @@ -52,5 +50,5 @@ list(REMOVE_ITEM effekseer_src "${PROJECT_SOURCE_DIR}/../../Effekseer/Dev/Cpp/Ef
set(CMAKE_STATIC_LIBRARY_SUFFIX ".bc")
set(CMAKE_SHARED_LIBRARY_SUFFIX ".bc")

add_library(EffekseerUnity SHARED ${effekseer_src} )
add_library(EffekseerUnity SHARED ${effekseer_src})
target_compile_features(EffekseerUnity PUBLIC cxx_std_17)
2 changes: 1 addition & 1 deletion Dev/Effekseer
Submodule Effekseer updated 519 files
10 changes: 8 additions & 2 deletions Dev/Plugin/Assets/Effekseer/Editor/EffekseerPluginSwitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ public class EffekseerPluginSwitcher
#elif UNITY_2021_2_OR_NEWER
static readonly string bcPath = "WebGL/2.0.19-64bit/libEffekseerUnity.bc";
#else
static readonly string bcPath = "WebGL/libEffekseerUnity.bc";
static readonly string bcPath = string.Empty;
#endif
static readonly bool webglSupported =
#if UNITY_2021_2_OR_NEWER
true;
#else
false;
#endif

static EffekseerPluginSwitcher()
Expand All @@ -37,7 +43,7 @@ static public void Run()
var processed = new List<string>();
foreach (var importer in importers)
{
var enabled = importer.assetPath.Contains(bcPath);
var enabled = webglSupported && importer.assetPath.Contains(bcPath);
importer.SetCompatibleWithPlatform(BuildTarget.WebGL, enabled);
processed.Add(importer.assetPath + " : " + enabled.ToString());
}
Expand Down

This file was deleted.

13 changes: 0 additions & 13 deletions ci/build_webgl138_plugin.sh

This file was deleted.