Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
1.15.2 Add project sampling support to Spine C3 texture.
Browse files Browse the repository at this point in the history
Nearest, Bilinear, Trilinear.
  • Loading branch information
MikalDev committed Sep 20, 2020
1 parent 95c609b commit 8b4dd6c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
Binary file added dist/Spine-v1.15.2.c3addon
Binary file not shown.
3 changes: 3 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd ./src
zip -r ../dist/Spine-v$1.c3addon *
cd ..
2 changes: 1 addition & 1 deletion src/addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "plugin",
"name": "Spine",
"id": "Gritsenko_Spine",
"version": "1.15.1",
"version": "1.15.2",
"author": "Mikal and Igor Gritsenko",
"website": "https://gritsenko.github.io/c3_spine_plugin",
"documentation": "https://gritsenko.github.io/c3_spine_plugin",
Expand Down
4 changes: 3 additions & 1 deletion src/c3runtime/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,9 @@
var bounds = this.skeletonInfo.bounds;
this.textureWidth = bounds.size.x;
this.textureHeight = bounds.size.y;
this._elementTexture = renderer.CreateDynamicTexture(this.textureWidth, this.textureHeight, { mipMap: false });
let sampling = this.runtime.GetSampling();
let options = { mipMap: false, sampling: sampling }
this._elementTexture = renderer.CreateDynamicTexture(this.textureWidth, this.textureHeight, options);
// console.log('[Spine] Texture size:',bounds.size.x,',', bounds.size.y);

var oldFrameBuffer = gl.getParameter(gl.FRAMEBUFFER_BINDING);
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{

const PLUGIN_ID = "Gritsenko_Spine";
const PLUGIN_VERSION = "1.15.1";
const PLUGIN_VERSION = "1.15.2";
const PLUGIN_CATEGORY = "general";

const PLUGIN_CLASS = SDK.Plugins.Gritsenko_Spine = class SpinePlugin extends SDK.IPluginBase {
Expand Down

0 comments on commit 8b4dd6c

Please sign in to comment.